Full-screen display method for mobile terminal and device

ABSTRACT

The mobile terminal displays a first interface, where the first interface includes a first window and a second window, the first window and the second window are used to display a user interface of an application, and the first window includes a target object. The mobile terminal detects a first touch operation, where the first touch operation is used to indicate the mobile terminal to display the target object in full screen mode. The mobile terminal switches a portrait direction to a landscape direction in response to the first touch operation. The mobile terminal displays a second interface, where the second interface includes a third window, the third window is used to display the target object in full screen mode, and the third window is larger than the first window. The embodiments of this application are used for full-screen display.

This application claims priority to Chinese Patent Application No.201910554567.6, filed with the China National Intellectual PropertyAdministration on Jun. 25, 2019 and entitled “FULL-SCREEN DISPLAY METHODFOR MOBILE TERMINAL AND DEVICE, which is incorporated herein byreference in its entirety.

TECHNICAL FIELD

Embodiments of this application relate to the field of electronictechnologies, and in particular, to a full-screen display method for amobile terminal and a device.

BACKGROUND

Currently, a multi-window display technology is widely used in a mobileterminal such as a mobile phone or a tablet computer. In a multi-windowscenario, a plurality of windows may be displayed on the mobileterminal. When a video in a currently displayed window needs to beplayed in full screen mode, the mobile terminal may play the video infull screen mode in the window.

For example, in a multi-window scenario, as shown in FIG. 1A, aplurality of windows displayed on a tablet computer include a window 01of a Weibo application and a window 02 of a setting application. Afterdetecting an operation of tapping a full-screen play button 03 in thewindow 01 by a user, as shown in FIG. 1B, the tablet computer plays avideo in full-screen mode in the window 01.

Use experience of the user is poor in a full-screen play manner used inthe conventional technology.

SUMMARY

Embodiments of this application provide a full-screen display method fora mobile terminal and a device, so that a video play interface can bedisplayed in full screen mode on an entire screen of the mobileterminal, to improve immersive viewing experience of a user.

To achieve the foregoing objectives, the following technical solutionsare used in the embodiments of this application.

According to one aspect, an embodiment of this application provides afull-screen display method for a mobile terminal. The mobile terminalincludes a display; and the method includes: The mobile terminaldisplays a first interface, where the first interface includes a firstwindow and a second window, the first window and the second window areused to display a user interface of an application, and the first windowincludes a target object. The mobile terminal detects a first touchoperation, where the first touch operation is used to indicate themobile terminal to display the target object in full screen mode. Themobile terminal switches a portrait direction to a landscape directionin response to the first touch operation. Then, the mobile terminaldisplays a second interface, where the second interface includes a thirdwindow, the third window is used to display the target object in fullscreen mode, and the third window is larger than the first window.

In this solution, after detecting an operation that is of a user andthat indicates to perform full-screen display in the first window, themobile terminal no longer displays the plurality of windows, but maydisplay only one third window on an entire screen of the mobileterminal, where the third window is larger than the first window, andthe third window is used to display the target object in full-screenmode. To be specific, the entire screen is used to display the targetobject in full screen mode in the third window, and the entire screen ofthe mobile terminal is used to display the target object in full screenmode. In this way, the mobile terminal may replace the first window withthe larger third window, to display the target object in the largerrange, and stop displaying the second window. Therefore, the user cansee a larger target object, and does not see content in the secondwindow, and is not visually interfered by the content in the secondwindow, to improve browsing experience of the user.

In a possible design, a size of the third window is the same as a sizeof the display.

In this way, the target object in the third window may cover the entirescreen of the mobile terminal, and a size of the target object matches asize of the entire screen, which is different from the conventionaltechnology in which the target object can be displayed in full screenmode only in a window in a partial area of the screen. Therefore, betterimmersive browsing experience can be provided for the user.

In another possible design, before the mobile terminal switches theportrait direction to the landscape direction, the method furtherincludes: The mobile terminal obtains a display direction, where thedisplay direction includes the landscape direction or the portraitdirection. That the mobile terminal switches a portrait direction to alandscape direction includes: If the display direction obtained by themobile terminal is the portrait direction, and a difference between awidth and a height of the display is greater than a preset value, themobile terminal switches the display direction from the portraitdirection to the landscape direction.

To be specific, if the width and the height of the display differgreatly, and the display direction obtained by the mobile terminal isthe portrait direction, the mobile terminal switches to the landscapedirection, to better display the target object in full screen mode inthe landscape direction.

In another possible design, if the display direction obtained by themobile terminal is the portrait direction, and the difference betweenthe width and the height of the display is less than or equal to thepreset value, the mobile terminal performs full-screen display.

In this solution, if the width and the height of the display differslightly, full-screen display effects of the landscape direction and theportrait direction differ slightly. Therefore, the mobile terminal maynot switch the portrait direction to the landscape direction.

In another possible design, after the mobile terminal obtains thedisplay direction, the method further includes: If the display directionobtained by the mobile terminal is the landscape direction, the mobileterminal displays the second interface.

To be specific, if the display direction obtained by the mobile terminalis the landscape direction, the mobile terminal does not need to switchthe display direction, but may directly perform full-screen display.

In another possible design, after the mobile terminal switches theportrait direction to the landscape direction, the method furtherincludes: The mobile terminal stores direction switching information,where the direction switching information is used to indicate that thedisplay direction is switched from the portrait direction to thelandscape direction. After the mobile terminal displays the secondinterface, the method further includes: The mobile terminal detects aninstruction for exiting full-screen display. The mobile terminalswitches the display direction back to the portrait direction based onthe direction switching information. The mobile terminal displays athird interface, where the third interface includes the first window andthe second window, and sizes of the first window and the second windowin the third interface are the same as sizes of the first window and thesecond window in the first interface.

To be specific, after exiting full-screen display, the mobile terminalmay restore a multi-window display status existing before full-screendisplay.

In another possible design, the mobile terminal includes an activitymanager and a window manager. That the mobile terminal displays a secondinterface, where the second interface includes a third window, the thirdwindow is used to display the target object in full screen mode, and thethird window is larger than the first window includes: The activitymanager updates first status information of the first window, where thefirst status information includes a window size of the first window, andan updated window size of the first window is greater than a size of thefirst window in the first interface. The activity manager updatesupdated first status information to a configuration file of anapplication corresponding to the first window. The window manager drawsthe third window based on the updated first status information in theconfiguration file. The display displays the third window, where thethird window is used to display the target object in full screen mode.

In this way, the mobile terminal may update information about the firstwindow by using the configuration file, so that the updated size of thefirst window is greater than the size of the first window displayed inthe first interface. Further, the mobile terminal draws the third windowbased on the updated information about the first window, so that thethird window is larger than the first window displayed in the firstinterface.

In another possible design, the first interface displays the firstwindow and the second window in split-screen mode. Before the windowmanager draws the third window, the method further includes: Theactivity manager switches a split-screen mode to a full-screen mode.That the window manager draws the third window based on the updatedfirst status information in the configuration file includes: The windowmanager draws the third window based on the updated first statusinformation in the configuration file and the full-screen mode.

To be specific, if the mobile terminal displays the first window insplit-screen mode in the first interface, the mobile terminal canperform full-screen display only after switching the split-screen modeto the full-screen mode.

In another possible design, a window mode corresponding to the firstwindow in the first interface is the split-screen mode, the first statusinformation further includes a window mode, and an updated window modecorresponding to the first window is the full-screen mode.

To be specific, if the first window is in split-screen mode, the mobileterminal can perform full-screen display only after switching thesplit-screen mode to the full-screen mode.

In another possible design, the mobile terminal includes an activitymanager and a window manager. After the mobile terminal detects thefirst touch operation, the method further includes: The activity managerstores second status information of the first window and second statusinformation of the second window, where the second status informationincludes a window size and a window mode. That the mobile terminaldisplays a third interface, where the third interface includes the firstwindow and the second window, and sizes of the first window and thesecond window in the third interface are the same as sizes of the firstwindow and the second window in the first interface includes: Theactivity manager updates the stored second status information of thefirst window to a configuration file of an application corresponding tothe first window. The window manager draws the first window in the thirdinterface based on the second status information of the first window inthe configuration file. The display displays the first window in thethird interface, where a size of the first window in the third interfaceis the same as a size of the first window in the first interface. Theactivity manager updates the stored second status information of thesecond window to a configuration file of an application corresponding tothe second window. The window manager draws the second window in thethird interface based on the second status information of the secondwindow in the configuration file. The display displays the second windowin the third interface, where a size of the second window in the thirdinterface is the same as a size of the second window in the firstinterface.

To be specific, the mobile terminal may store multi-window statusinformation existing before full-screen display, so that after exitingfull-screen display, the mobile terminal may restore, based on thestored information, a multi-window display status existing beforefull-screen display.

In another possible design, the target object includes a video, apicture, a game interface, or a reader interface.

To be specific, the mobile terminal may play the video in full screenmode, display the picture in full screen mode, display the game runninginterface in full screen mode, display the reader interface in fullscreen mode, or the like on the entire display.

In another possible design, the target object is the video. Before themobile terminal displays the second interface, the method furtherincludes: The mobile terminal determines that one or more of thefollowing are met: an audio and video decoder is in a working state; anapplication corresponding to the first window in which the video islocated obtains an audio focus; or the first window includes a subwindowof a SurfaceView type.

In this solution, the mobile terminal may more accurately determine,based on these conditions, that the video needs to be played in fullscreen mode.

In another possible design, the first window in the first interfaceincludes a first control, and the first touch operation is a touchoperation performed on the first control.

In this way, when detecting the touch operation (for example, a tapoperation) performed by the user on the first control, the mobileterminal may implement device-level full-screen display on the entiredisplay.

In another possible design, the first window in the first interfacefurther includes a second control; and the method further includes: Themobile terminal detects a touch operation performed on the secondcontrol. The mobile terminal displays the target object in full screenmode in the first window in response to the touch operation performed onthe second control.

In this way, when detecting the touch operation (for example, a tapoperation) performed by the user on the second control, the mobileterminal may perform full-screen display in the first window. Therefore,for touch operations performed by the user on different controls, themobile terminal may have different full-screen display modes, includinga device-level full-screen display mode and an intra-window full-screendisplay mode.

In another possible design, mutual switching may be performed between adevice-level full-screen display mode and an intra-window full-screendisplay mode.

In another possible design, after the mobile terminal displays thetarget object in full screen mode in the first window, the methodfurther includes: The mobile terminal detects a third touch operation.The mobile terminal displays the second interface in response to thethird touch operation.

To be specific, the device-level full-screen display mode may beswitched to the intra-window full-screen display mode.

In another possible design, after the mobile terminal displays thesecond interface, the method further includes: The mobile terminaldetects a fourth touch operation, where the fourth touch operation isused to indicate to switch a full-screen display mode. The mobileterminal displays a fourth interface in response to the fourth touchoperation, where the fourth interface includes the first window and thesecond window, and sizes of the first window and the second window inthe fourth interface are the same as the sizes of the first window andthe second window in the first interface. The mobile terminal displaysthe target object in full screen mode in the first window.

To be specific, the intra-window full-screen display mode may beswitched to the device-level full-screen display mode.

According to another aspect, an embodiment of this application providesanother full-screen display method for a mobile terminal. The mobileterminal includes a display; and the method includes:

The mobile terminal displays a first interface, where the firstinterface includes a first window, the first window is smaller than thedisplay, the first window is used to display a user interface of anapplication, and the first window includes a target object. The mobileterminal detects a first touch operation, where the first touchoperation is used to indicate the mobile terminal to display the targetobject in full screen mode. The mobile terminal switches a portraitdirection to a landscape direction in response to the first touchoperation. The mobile terminal displays a second interface, where thesecond interface includes a second window, the second window is used todisplay the target object in full screen mode, and the second window islarger than the first window.

In this solution, after detecting an operation that is of a user andthat indicates to perform full-screen display in the first window, themobile terminal no longer displays the plurality of windows, but maydisplay one second window on an entire screen of the mobile terminal,where the second window is larger than the first window, and the secondwindow is used to display the target object in full-screen mode. To bespecific, the entire screen is used to display the target object in fullscreen mode in the second window, and the entire screen of the mobileterminal is used to display the target object in full screen mode. Inthis way, the mobile terminal may replace the first window with thelarger second window, to display the target object in the larger range.Therefore, the user can see a larger target object, to improve browsingexperience of the user.

In a possible design, after the mobile terminal switches the portraitdirection to the landscape direction, the method further includes: Themobile terminal stores direction switching information. After the mobileterminal displays the second interface, the method further includes:

The mobile terminal detects an instruction for exiting full-screendisplay. If the mobile terminal determines, based on the directionswitching information, that the display direction is switched from theportrait direction to the landscape direction, the mobile terminalswitches the display direction back to the portrait direction. Themobile terminal displays a third interface, where the third interfaceincludes the first window, and a size of the first window in the thirdinterface is the same as a size of the first window in the firstinterface.

After exiting full-screen display, the mobile terminal may restore amulti-window display status existing before full-screen display.

In another possible design, before the mobile terminal detects the firsttouch operation, the method further includes: The mobile terminaldetects a second touch operation, where the second touch operation isused to indicate the mobile terminal to display the target object infull screen mode. The mobile terminal displays the target object in fullscreen mode in the first window in response to the second touchoperation.

In this way, for different touch operations of the user, the mobileterminal may have different full-screen display modes, including adevice-level full-screen display mode and an intra-window full-screendisplay mode.

According to another aspect, an embodiment of this application providesa mobile terminal, including one or more processors, a memory, and atouchscreen, configured to: detect a touch operation and display aninterface. The memory stores code, and when the code is executed by theone or more processors, the mobile terminal is enabled to perform thefollowing steps: displaying a first interface, where the first interfaceincludes a first window and a second window, the first window and thesecond window are used to display a user interface of an application,and the first window includes a target object; detecting a first touchoperation, where the first touch operation is used to indicate todisplay the target object in full screen mode; switching a portraitdirection to a landscape direction in response to the first touchoperation; and displaying a second interface, where the second interfaceincludes a third window, the third window is used to display the targetobject in full screen mode, and the third window is larger than thefirst window.

In this solution, after detecting an operation that is of a user andthat indicates to perform full-screen display in the first window, themobile terminal no longer displays the plurality of windows, but maydisplay only one third window on an entire screen of the mobileterminal, where the third window is larger than the first window, andthe third window is used to display the target object in full-screenmode. To be specific, the entire screen is used to display the targetobject in full screen mode in the third window, and the entire screen ofthe mobile terminal is used to display the target object in full screenmode. In this way, the mobile terminal may replace the first window withthe larger third window, to display the target object in the largerrange, and stop displaying the second window. Therefore, the user cansee a larger target object, and does not see content in the secondwindow, and is not visually interfered by the content in the secondwindow, to improve browsing experience of the user.

In a possible design, when the code is executed by the one or moreprocessors, the mobile terminal is further enabled to perform thefollowing step: obtaining a display direction before switching theportrait direction to the landscape direction, where the displaydirection includes the landscape direction or the portrait direction.The mobile terminal is configured to: if the obtained display directionis the portrait direction, and a difference between a width and a heightof the touchscreen is greater than a preset value, switch the displaydirection from the portrait direction to the landscape direction.

In another possible design, when the code is executed by the one or moreprocessors, the mobile terminal is further enabled to perform thefollowing step: after obtaining the display direction, if the obtaineddisplay direction is the landscape direction, displaying the secondinterface; or if the obtained display direction is the portraitdirection, and the difference between the width and the height of thetouchscreen is less than or equal to the preset value, displaying thesecond interface.

In another possible design, when the code is executed by the one or moreprocessors, the mobile terminal is further enabled to perform thefollowing steps: storing direction switching information after switchingthe portrait direction to the landscape direction, where the directionswitching information is used to indicate that the display direction isswitched from the portrait direction to the landscape direction; afterdisplaying the second interface, detecting an instruction for exitingfull-screen display; switching the display direction back to theportrait direction based on the direction switching information; anddisplaying a third interface, where the third interface includes thefirst window and the second window, and sizes of the first window andthe second window in the third interface are the same as sizes of thefirst window and the second window in the first interface.

In another possible design, the code is used to implement an activitymanager and a window manager. The activity manager updates first statusinformation of the first window, where the first status informationincludes a window size of the first window, and an updated window sizeof the first window is greater than a size of the first window in thefirst interface. The activity manager updates updated first statusinformation to a configuration file of an application corresponding tothe first window. The window manager draws the third window based on theupdated first status information in the configuration file. Thetouchscreen displays the third window, where the third window is used todisplay the target object in full screen mode.

In another possible design, the first interface displays the firstwindow and the second window in split-screen mode. The activity managerswitches a split-screen mode to a full-screen mode. The window managerdraws the third window based on the updated first status information inthe configuration file and the full-screen mode.

In another possible design, the code is used to implement an activitymanager and a window manager. After the first touch operation isdetected, the activity manager stores second status information of thefirst window and second status information of the second window, wherethe second status information includes a window size and a window mode.The activity manager updates the stored second status information of thefirst window to a configuration file of an application corresponding tothe first window. The window manager draws the first window in the thirdinterface based on the second status information of the first window inthe configuration file. The touchscreen displays the first window in thethird interface, where a size of the first window in the third interfaceis the same as a size of the first window in the first interface. Theactivity manager updates the stored second status information of thesecond window to a configuration file of an application corresponding tothe second window. The window manager draws the second window in thethird interface based on the second status information of the secondwindow in the configuration file. The touchscreen displays the secondwindow in the third interface, where a size of the second window in thethird interface is the same as a size of the second window in the firstinterface.

In another possible design, the target object includes a video, apicture, a game interface, or a reader interface.

In another possible design, the target object is the video. When thecode is executed by the one or more processors, the mobile terminal isfurther enabled to perform the following step: before displaying thesecond interface, determining that one or more of the following are met:

an audio and video decoder is in a working state; an applicationcorresponding to the first window in which the video is located obtainsan audio focus; or the first window includes a subwindow of aSurfaceView type.

In another possible design, the first window in the first interfaceincludes a first control, and the first touch operation is a touchoperation performed on the first control.

In another possible design, the first window in the first interfacefurther includes a second control. When the code is executed by the oneor more processors, the mobile terminal is further enabled to performthe following steps: detecting a touch operation performed on the secondcontrol; and displaying the target object in full screen mode in thefirst window in response to the touch operation performed on the secondcontrol.

According to another aspect, an embodiment of this application providesa full-screen display apparatus. The apparatus is included in a mobileterminal, and the apparatus has functions of implementing behavior ofthe mobile terminal in any method in the foregoing aspects and thepossible designs. The functions may be implemented by hardware, or maybe implemented by hardware executing corresponding software. Thehardware or the software includes at least one module or unitcorresponding to the functions, for example, a display module or unit, adetection module or unit, a switching module or unit, or an obtainingmodule or unit.

According to another aspect, an embodiment of this application providesa computer storage medium, including computer instructions. When thecomputer instructions are run on a mobile terminal, the mobile terminalis enabled to perform the full-screen display method in any possibledesign of the foregoing aspects.

According to another aspect, an embodiment of this application providesa computer program product. When the computer program product runs on acomputer, the computer is enabled to perform the full-screen displaymethod in any possible design of the foregoing aspects.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1A is a diagram of a multi-window display interface according tothe conventional technology;

FIG. 1B is a diagram of a full-screen display interface according to theconventional technology;

FIG. 2 is a schematic diagram of a structure of a mobile terminalaccording to an embodiment of this application;

FIG. 3A is a diagram of a multi-window display interface according to anembodiment of this application;

FIG. 3B is a diagram of another multi-window display interface accordingto an embodiment of this application;

FIG. 4A is a diagram of a full-screen display interface according to anembodiment of this application;

FIG. 4B is a diagram of another full-screen display interface accordingto an embodiment of this application;

FIG. 4C is a diagram of another full-screen display interface accordingto an embodiment of this application;

FIG. 5A is a diagram of another multi-window display interface accordingto an embodiment of this application;

FIG. 5B is a diagram of another full-screen display interface accordingto an embodiment of this application;

FIG. 5C is a diagram of another multi-window display interface accordingto an embodiment of this application;

FIG. 5D is a diagram of another full-screen display interface accordingto an embodiment of this application;

FIG. 6A is a diagram of another multi-window display interface accordingto an embodiment of this application;

FIG. 6B is a diagram of another full-screen display interface accordingto an embodiment of this application;

FIG. 6C is a diagram of another full-screen display interface accordingto an embodiment of this application;

FIG. 6D is a diagram of another multi-window display interface accordingto an embodiment of this application;

FIG. 7A is a diagram of another multi-window display interface accordingto an embodiment of this application;

FIG. 7B is a schematic diagram of a screen folded state according to anembodiment of this application;

FIG. 7C is a diagram of another full-screen display interface accordingto an embodiment of this application;

FIG. 8A is a diagram of another multi-window display interface accordingto an embodiment of this application;

FIG. 8B is a diagram of another multi-window display interface accordingto an embodiment of this application;

FIG. 9A is a diagram of another multi-window display interface accordingto an embodiment of this application;

FIG. 9B is a diagram of another full-screen display interface accordingto an embodiment of this application;

FIG. 10A is a schematic diagram of prompt information according to anembodiment of this application;

FIG. 10B is a schematic diagram of other prompt information according toan embodiment of this application;

FIG. 11 is a schematic diagram of a setting interface according to anembodiment of this application;

FIG. 12A is a diagram of another multi-window display interfaceaccording to an embodiment of this application;

FIG. 12B is a diagram of another multi-window display interfaceaccording to an embodiment of this application;

FIG. 12C is a diagram of another multi-window display interfaceaccording to an embodiment of this application;

FIG. 13 is a schematic diagram of other prompt information according toan embodiment of this application;

FIG. 14 is a schematic diagram of a group of full-screen play controlsaccording to an embodiment of this application;

FIG. 15A is a diagram of another multi-window display interfaceaccording to an embodiment of this application;

FIG. 15B is a diagram of another full-screen display interface accordingto an embodiment of this application;

FIG. 16A is a diagram of another multi-window display interfaceaccording to an embodiment of this application;

FIG. 16B is a diagram of another full-screen display interface accordingto an embodiment of this application;

FIG. 17A is a schematic diagram of a software architecture according toan embodiment of this application;

FIG. 17B is a flowchart of a display method according to an embodimentof this application; and

FIG. 18 is a flowchart of another display method according to anembodiment of this application.

DESCRIPTION OF EMBODIMENTS

The following describes the technical solutions in the embodiments ofthis application with reference to the accompanying drawings in theembodiments of this application. In the descriptions of the embodimentsof this application, “I” means “or” unless otherwise specified. Forexample, A/B may represent A or B. In this specification, “and/or”describes only an association relationship for describing associatedobjects and represents that three relationships may exist. For example,A and/or B may represent the following three cases: Only A exists, bothA and B exist, and only B exists. In addition, in the descriptions ofthe embodiments of this application, “a plurality of” means two or more.

In the conventional technology, in a multi-window scenario, when amobile terminal detects an operation that is of a user indicates to playa video in a window in full-screen mode, the mobile terminal stilldisplays a plurality of windows, and displays a video play interface infull-screen mode in a window in which the video is located, to implementfull-screen video play. For example, after detecting that the userindicates to play, in full screen mode, a video in a window 01 of aWeibo application shown in FIG. 1A, as shown in FIG. 1B, the mobileterminal still displays the window 01 of the Weibo application and awindow 02 of a setting application, and displays a video play interfacein full screen mode in the window 01 of the Weibo application. That avideo play interface is displayed in full screen mode in the window 01of the Weibo application means that a size of a video picture matches asize of the window 01 of the Weibo application. As shown in FIG. 1B, avideo picture in a video play window occupies the window 01 of the Weiboapplication horizontally, and a blank edge (that is, a black edge shownin FIG. 1B) is left between the video picture and each of an upper edgeline and a lower edge line of the window 01 of the Weibo applicationvertically. The entire window 01 of the Weibo application is used todisplay the video play interface, and the video play interface occupiesthe window 01 of the Weibo application.

In a full-screen play manner used in the conventional technology, thevideo play interface can be displayed in full screen mode only in thewindow of the Weibo application, that is, the video play interface canbe displayed in full screen mode only in a partial area of the mobileterminal. A size of the video picture matches a size of the applicationwindow. Therefore, this may be referred to as intra-window full-screendisplay. However, the video play interface cannot be displayed in fullscreen mode on the entire screen of the mobile terminal, resulting inpoor immersive experience of the user.

An embodiment of this application provides a full-screen display method.The method may be applied to a mobile terminal having a screen. In amulti-window scenario, the mobile terminal may display a plurality ofwindows on the screen, and a size of each window is less than a size ofthe screen. For example, the plurality of windows include a first windowand a second window. After detecting an operation that is of a user andthat indicates to perform full-screen display in the first window, themobile terminal no longer displays the plurality of windows, but maydisplay only one third window on an entire screen of the mobileterminal, where the third window is larger than the first window, andthe third window is used to display the target object in full-screenmode. To be specific, the entire screen is used to display the targetobject in full screen mode in the third window, and the entire screen ofthe mobile terminal is used to display the target object in full screenmode. Therefore, this may be referred to as device-level full-screendisplay. In this way, the mobile terminal may replace the first windowwith the larger third window, to display the target object in the largerrange, and stop displaying the second window. Therefore, the user cansee a larger target object, and does not see content in the secondwindow, and is not visually interfered by the content in the secondwindow, to improve browsing experience of the user.

In some embodiments, a size of the third window is the same as orbasically the same as a size of the screen. In this way, the targetobject in the third window may cover the entire screen of the mobileterminal, and a size of the target object matches a size of the entirescreen, which is different from the conventional technology in which thetarget object can be displayed in full screen mode only in a window in apartial area of the screen. Therefore, better immersive browsingexperience can be provided for the user.

For example, the target object may be a video. In a multi-windowscenario, after detecting an operation that is of the user and thatindicates to play the video in full screen mode (or indicates to displaya video play interface in full screen mode), the mobile terminal nolonger displays a plurality of windows, but may display the video playinterface in full screen mode on the entire screen of the mobileterminal. A video play window covers the entire screen, the entirescreen is used to display the video play interface, and a size of avideo picture matches a size of the screen, which is different from theconventional technology in which the video play interface can bedisplayed in full screen mode only in a window in a partial area of thescreen. Therefore, better immersive video viewing experience can beprovided for the user. For another example, the target object displayedin full screen mode on the entire screen of the mobile terminal mayalternatively be a picture, a game interface, or a reader interface. Themobile terminal may be an electronic device such as a tablet computer, amobile phone, a foldable device, a netbook, a personal digital assistant(personal digital assistant, PDA), a wearable device, or an augmentedreality (augmented reality, AR)/virtual reality (virtual reality, VR)device. A specific type of the mobile terminal is not limited in thisembodiment of this application.

For example, FIG. 2 is a schematic diagram of a structure of a mobileterminal 100. The mobile terminal 100 may include a processor 110, anexternal memory interface 120, an internal memory 121, a universalserial bus (universal serial bus, USB) port 130, a charging managementmodule 140, a power management module 141, a battery 142, an antenna 1,an antenna 2, a mobile communications module 150, a wirelesscommunications module 160, an audio module 170, a speaker 170A, areceiver 170B, a microphone 170C, a headset jack 170D, a sensor module180, a button 190, a motor 191, an indicator 192, a camera 193, adisplay 194, a subscriber identification module (subscriberidentification module, SIM) card interface 195, and the like. The sensormodule 180 may include a pressure sensor 180A, a gyro sensor 180B, abarometric pressure sensor 180C, a magnetic sensor 180D, an accelerationsensor 180E, a distance sensor 180F, an optical proximity sensor 180G, afingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K,an ambient light sensor 180L, a bone conduction sensor 180M, and thelike.

It may be understood that the structure shown in this embodiment of thisapplication does not constitute a specific limitation on the mobileterminal 100. In some other embodiments of this application, the mobileterminal 100 may include more or fewer components than those shown inthe figure, or combine some components, or split some components, orhave different component arrangements. The components shown in thefigure may be implemented by hardware, software, or a combination ofsoftware and hardware.

The processor 110 may include one or more processing units. For example,the processor 110 may include an application processor (applicationprocessor, AP), a modem processor, a graphics processing unit (graphicsprocessing unit, GPU), an image signal processor (image signalprocessor, ISP), a controller, a video codec, a digital signal processor(digital signal processor, DSP), a baseband processor, and/or aneural-network processing unit (neural-network processing unit, NPU).Different processing units may be independent components, or may beintegrated into one or more processors.

The controller may be a nerve center and a command center of the mobileterminal 100. The controller may generate an operation control signalbased on instruction operation code and a time sequence signal, tocomplete control of instruction reading and instruction execution.

A memory may be further disposed in the processor 110, and is configuredto store instructions and data. In some embodiments, the memory in theprocessor 110 is a cache. The memory may store instructions or data thatis just used or cyclically used by the processor 110. If the processor110 needs to use the instructions or the data again, the processor 110may directly invoke the instructions or the data from the memory. Thisavoids repeated access and reduces waiting time of the processor 110.Therefore, system efficiency is improved.

In some embodiments, the processor 110 may be configured to: execute theinstructions in the memory, and invoke a related module to implementfunctions of the mobile terminal 100 in this embodiment of thisapplication. For example, in a multi-window scenario, a function ofperforming full-screen display on the entire display of the mobileterminal is implemented.

In some embodiments, in a multi-window scenario, when the mobileterminal determines to perform full-screen display on the entiredisplay, the internal memory 121 or the memory in the processor 110 maystore current multi-window status information, so that after exitingfull-screen video play, the mobile terminal may restore a multi-windowdisplay status based on the status information.

In some embodiments, the processor 110 may include one or moreinterfaces. The interface may include an inter-integrated circuit(inter-integrated circuit, I2C) interface, an inter-integrated circuitsound (inter-integrated circuit sound, I2S) interface, a pulse codemodulation (pulse code modulation, PCM) interface, a universalasynchronous receiver/transmitter (universal asynchronousreceiver/transmitter, UART) interface, a mobile industry processorinterface (mobile industry processor interface, MIPI), a general-purposeinput/output (general-purpose input/output, GPIO) interface, asubscriber identification module (subscriber identification module, SIM)interface, a universal serial bus (universal serial bus, USB) port,and/or the like.

The I2C interface is a two-way synchronization serial bus, and includesa serial data line (serial data line, SDA) and a serial clock line(serial clock line, SCL). In some embodiments, the processor 110 mayinclude a plurality of groups of I2C buses. The processor 110 may beseparately coupled to the touch sensor 180K, a charger, a flashlight,the camera 193, and the like through different I2C interfaces. Forexample, the processor 110 may be coupled to the touch sensor 180Kthrough the I2C interface, so that the processor 110 communicates withthe touch sensor 180K through the I2C bus interface, to implement atouch function of the mobile terminal 100.

The I2S interface may be configured to perform audio communication. Insome embodiments, the processor 110 may include a plurality of groups ofI2S buses. The processor 110 may be coupled to the audio module 170through the I2S bus, to implement communication between the processor110 and the audio module 170. In some embodiments, the audio module 170may transfer an audio signal to the wireless communications module 160through the I2S interface, to implement a function of answering a callby using a Bluetooth headset.

The PCM interface may also be configured to: perform audiocommunication, and sample, quantize, and code an analog signal. In someembodiments, the audio module 170 may be coupled to the wirelesscommunications module 160 through a PCM bus interface. In someembodiments, the audio module 170 may alternatively transfer an audiosignal to the wireless communications module 160 through the PCMinterface, to implement a function of answering a call by using aBluetooth headset. Both the I2S interface and the PCM interface may beconfigured to perform audio communication.

The UART interface is a universal serial data bus, and is configured toperform asynchronous communication. The bus may be a two-waycommunications bus. The bus converts to-be-transmitted data betweenserial communication and parallel communication. In some embodiments,the UART interface is usually configured to connect the processor 110 tothe wireless communications module 160. For example, the processor 110communicates with a Bluetooth module in the wireless communicationsmodule 160 through the UART interface, to implement a Bluetoothfunction. In some embodiments, the audio module 170 may transfer anaudio signal to the wireless communications module 160 through the UARTinterface, to implement a function of playing music by using a Bluetoothheadset.

The MIPI interface may be configured to connect the processor 110 to aperipheral component such as the display 194 or the camera 193. The MIPIinterface includes a camera serial interface (camera serial interface,CSI), a display serial interface (display serial interface, DSI), andthe like. In some embodiments, the processor 110 communicates with thecamera 193 through the CSI to implement a photographing function of themobile terminal 100. The processor 110 communicates with the display 194through the DSI, to implement a display function of the mobile terminal100.

The GPIO interface may be configured through software. The GPIOinterface may be configured as a control signal or a data signal. Insome embodiments, the GPIO interface may be configured to connect theprocessor 110 to the camera 193, the display 194, the wirelesscommunications module 160, the audio module 170, the sensor module 180,or the like. The GPIO interface may alternatively be configured as anI2C interface, an I2S interface, a UART interface, an MIPI interface, orthe like.

The USB port 130 is a port that conforms to a USB standardspecification, and may be specifically a mini USB port, a micro USBport, a USB Type-C port, or the like. The USB port 130 may be configuredto connect to the charger to charge the mobile terminal 100, may beconfigured to transmit data between the mobile terminal 100 and aperipheral device, or may be configured to connect to a headset to playaudio by using the headset. The port may alternatively be configured toconnect to another mobile terminal, for example, an AR device.

It may be understood that an interface connection relationship betweenthe modules shown in this embodiment of this application is merely anexample for description, and does not constitute a limitation on thestructure of the mobile terminal 100. In some other embodiments of thisapplication, the mobile terminal 100 may alternatively use an interfaceconnection manner different from that in the foregoing embodiment, or acombination of a plurality of interface connection manners.

The charging management module 140 is configured to receive a charginginput from the charger. The charger may be a wireless charger or a wiredcharger. In some embodiments of wired charging, the charging managementmodule 140 may receive a charging input from the wired charger throughthe USB port 130. In some embodiments of wireless charging, the chargingmanagement module 140 may receive a wireless charging input by using awireless charging coil of the mobile terminal 100. When charging thebattery 142, the charging management module 140 may further supply powerto the mobile terminal by using the power management module 141.

The power management module 141 is configured to connect to the battery142 and the charging management module 140 to the processor 110. Thepower management module 141 receives an input of the battery 142 and/orthe charging management module 140, and supplies power to the processor110, the internal memory 121, an external memory, the display 194, thecamera 193, the wireless communications module 160, and the like. Thepower management module 141 may be further configured to monitorparameters such as a battery capacity, a battery cycle count, and abattery health status (electric leakage or impedance). In some otherembodiments, the power management module 141 may alternatively bedisposed in the processor 110. In some other embodiments, the powermanagement module 141 and the charging management module 140 mayalternatively be disposed in a same device.

A wireless communication function of the mobile terminal 100 may beimplemented by using the antenna 1, the antenna 2, the mobilecommunications module 150, the wireless communications module 160, themodem processor, the baseband processor, and the like.

The antenna 1 and the antenna 2 are configured to: transmit and receiveelectromagnetic wave signals. Each antenna in the mobile terminal 100may be configured to cover one or more communication bands. Differentantennas may be further multiplexed to improve antenna utilization. Forexample, the antenna 1 may be multiplexed as a diversity antenna in awireless local area network. In some other embodiments, the antenna maybe used in combination with a tuning switch.

The mobile communications module 150 may provide a wirelesscommunication solution that is applied to the mobile terminal 100 andthat includes 2G/3G/4G/5G or the like. The mobile communications module150 may include at least one filter, a switch, a power amplifier, a lownoise amplifier (low noise amplifier, LNA), and the like. The mobilecommunications module 150 may receive an electromagnetic wave throughthe antenna 1, perform processing such as filtering and amplification onthe received electromagnetic wave, and transfer a processedelectromagnetic wave to the modem processor for demodulation. The mobilecommunications module 150 may further amplify a signal modulated by themodem processor, and convert the signal into an electromagnetic wavethrough the antenna 1 for radiation. In some embodiments, at least somefunctional modules of the mobile communications module 150 may bedisposed in the processor 110. In some embodiments, at least somefunctional modules of the mobile communications module 150 may bedisposed in a same device as at least some modules of the processor 110.

The modem processor may include a modulator and a demodulator. Themodulator is configured to modulate a to-be-sent low-frequency basebandsignal into a medium or high-frequency signal. The demodulator isconfigured to demodulate a received electromagnetic wave signal into alow-frequency baseband signal. Then, the demodulator transmits thelow-frequency baseband signal obtained through demodulation to thebaseband processor for processing. The low-frequency baseband signal isprocessed by the baseband processor, and then transmitted to theapplication processor. The application processor outputs a sound signalby using an audio device (which is not limited to the speaker 170A, thereceiver 170B, or the like), or displays an image or a video through thedisplay 194. In some embodiments, the modem processor may be anindependent component. In some other embodiments, the modem processormay be independent of the processor 110, and is disposed in a samecomponent as the mobile communications module 150 or another functionalmodule.

The wireless communications module 160 may provide a wirelesscommunication solution that is applied to the mobile terminal 100 andthat includes a wireless local area network (wireless local areanetwork, WLAN) (for example, a wireless fidelity (wireless fidelity,Wi-Fi) network), Bluetooth (Bluetooth, BT), a global navigationsatellite system (global navigation satellite system, GNSS), frequencymodulation (frequency modulation, FM), a near field communication (nearfield communication, NFC) technology, an infrared (infrared, IR)technology, or the like. The wireless communications module 160 may beone or more devices that integrate at least one communications processormodule. The wireless communications module 160 receives anelectromagnetic wave through the antenna 2, performs frequencymodulation and filtering processing on an electromagnetic wave signal,and sends a processed signal to the processor 110. The wirelesscommunications module 160 may further receive a to-be-sent signal fromthe processor 110, perform frequency modulation and amplification on thesignal, and convert the signal into an electromagnetic wave through theantenna 2 for radiation.

In some embodiments, the antenna 1 and the mobile communications module150 in the mobile terminal 100 are coupled, and the antenna 2 and thewireless communications module 160 in the mobile terminal 100 arecoupled, so that the mobile terminal 100 can communicate with a networkand another device by using a wireless communications technology. Thewireless communications technology may include a global system formobile communications (global system for mobile communications, GSM), ageneral packet radio service (general packet radio service, GPRS), codedivision multiple access (code division multiple access, CDMA), widebandcode division multiple access (wideband code division multiple access,WCDMA), time-division code division multiple access (time-division codedivision multiple access, TD-CDMA), long term evolution (long termevolution, LTE), BT, a GNSS, a WLAN, NFC, FM, an IR technology, and/orthe like. The GNSS may include a global positioning system (globalpositioning system, GPS), a global navigation satellite system (globalnavigation satellite system, GLONASS), a BeiDou navigation satellitesystem (BeiDou navigation satellite system, BDS), a quasi-zenithsatellite system (quasi-zenith satellite system, QZSS), and/or asatellite based augmentation system (satellite based augmentationsystem, SBAS).

The mobile terminal 100 implements a display function by using the GPU,the display 194, the application processor, and the like. The GPU is amicroprocessor for image processing, and is connected to the display 194and the application processor. The GPU is configured to: performmathematical and geometric calculation, and render an image. In someembodiments, the GPU may draw a window. The processor 110 may includeone or more GPUs that execute program instructions to generate or changedisplay information.

The display 194 is configured to display an image, a video, or the like.The display 194 includes a display panel. The display panel may be aliquid crystal display (liquid crystal display, LCD), an organiclight-emitting diode (organic light-emitting diode, OLED), anactive-matrix organic light emitting diode (active-matrix organic lightemitting diode, AMOLED), a flexible light-emitting diode (flexiblelight-emitting diode, FLED), a mini-LED, a micro-LED, a micro-OLED,quantum dot light emitting diodes (quantum dot light emitting diodes,QLED), or the like. In some embodiments, the mobile terminal 100 mayinclude one or N displays 194, where N is a positive integer greaterthan 1.

In some embodiments, in a multi-window scenario, a plurality of windowsmay be displayed on the display 194. After the mobile terminal 100detects an operation that is of the user and that indicates to performfull-screen display in a window, the display 194 may display a targetobject in full screen mode in an entire display area.

The mobile terminal 100 may implement a photographing function by usingthe ISP, the camera 193, the video codec, the GPU, the display 194, theapplication processor, and the like.

The ISP is configured to process data fed back by the camera 193. Forexample, during photographing, a shutter is pressed, and light istransmitted to a photosensitive element of the camera through a lens.The photosensitive element of the camera converts an optical signal intoan electrical signal, and transmits the electrical signal to the ISP forprocessing. The ISP converts the electrical signal into a visible image.The ISP may further perform algorithm optimization on noise, brightness,and complexion of the image. The ISP may further optimize parameterssuch as exposure and a color temperature of a photographing scenario. Insome embodiments, the ISP may be disposed in the camera 193.

The camera 193 is configured to capture a static image or a video. Anoptical image of an object is generated through the lens, and isprojected onto the photosensitive element. The photosensitive elementmay be a charge coupled device (charge coupled device, CCD) or acomplementary metal-oxide-semiconductor (complementarymetal-oxide-semiconductor, CMOS) photoelectric transistor. Thephotosensitive element converts an optical signal into an electricalsignal, and then transmits the electrical signal to the ISP forconverting the electrical signal into a digital image signal. The ISPoutputs the digital image signal to the DSP for processing. The DSPconverts the digital image signal into an image signal in a standardformat such as RGB or YUV. In some embodiments, the mobile terminal 100may include one or N cameras 193, where N is a positive integer greaterthan 1.

The digital signal processor is configured to process a digital signal,and may process another digital signal in addition to the digital imagesignal. For example, when the mobile terminal 100 selects a frequency,the digital signal processor is configured to perform Fourier transformon energy of the frequency.

The video codec is configured to: compress or decompress a digitalvideo. The mobile terminal 100 may support one or more video codecs. Inthis way, the mobile terminal 100 may play or record videos in aplurality of coding formats, for example, moving picture experts group(moving picture experts group, MPEG)-1, MPEG-2, MPEG-3, and MPEG-4.

The NPU is a neural-network (neural-network, NN) computing processor,quickly processes input information by referring to a structure of abiological neural network, for example, by referring to a mode oftransmission between human brain neurons, and may further continuouslyperform self-learning. The NPU may be used to implement an applicationsuch as intelligent cognition of the mobile terminal 100, for example,image recognition, facial recognition, speech recognition, and textunderstanding.

The external memory interface 120 may be configured to connect to anexternal memory card such as a micro SD card, to extend a storagecapability of the mobile terminal 100. The external memory cardcommunicates with the processor 110 through the external memoryinterface 120, to implement a data storage function. For example, filessuch as music and a video are stored in the external memory card.

The internal memory 121 may be configured to store computer-executableprogram code. The executable program code includes instructions. Theprocessor 110 runs the instruction stored in the internal memory 121, toimplement various function applications of the mobile terminal 100 andprocess data. The internal memory 121 may include a program storage areaand a data storage area. The program storage area may store an operatingsystem, an application required by at least one function (for example, avoice playing function or an image playing function), and the like. Thedata storage area may store data (for example, audio data or an addressbook) created in a process of using the mobile terminal 100, and thelike. In addition, the internal memory 121 may include a high-speedrandom access memory, and may further include a nonvolatile memory, forexample, at least one magnetic disk storage device, a flash memorydevice, or a universal flash storage (universal flash storage, UFS).

The mobile terminal 100 may implement an audio function, for example,music playing and recording, by using the audio module 170, the speaker170A, the receiver 170B, the microphone 170C, the headset jack 170D, theapplication processor, and the like.

The audio module 170 is configured to convert digital audio informationinto an analog audio signal output, and is also configured to convert ananalog audio input into a digital audio signal. The audio module 170 maybe further configured to: code and decode an audio signal. In someembodiments, the audio module 170 may be disposed in the processor 110,or some functional modules of the audio module 170 are disposed in theprocessor 110.

The speaker 170A, also referred to as a “loudspeaker”, is configured toconvert an audio electrical signal into a sound signal. The mobileterminal 100 may be used to listen to music or listen to a hands-freecall by using the speaker 170A.

The receiver 170B, also referred to as an “earpiece”, is configured toconvert an audio electrical signal into a sound signal. When the mobileterminal 100 is used to answer a call or listen to voice information, avoice may be listened to by placing the receiver 170B close to a humanear.

The microphone 170C, also referred to as a “mike” or a “mic”, isconfigured to convert a sound signal into an electrical signal. Whenmaking a call or sending voice information, the user may make a sound bymoving a human mouth close to the microphone 170C to input a soundsignal to the microphone 170C. At least one microphone 170C may bedisposed in the mobile terminal 100. In some other embodiments, twomicrophones 170C may be disposed in the mobile terminal 100, to collecta sound signal and further implement a noise reduction function. In someother embodiments, three, four, or more microphones 170C may be disposedin the mobile terminal 100, to collect a sound signal, reduce noise,identify a sound source, implement a directional recording function, andthe like.

In some embodiments, the microphone 170C may be configured to receive avoice signal that is of the user and that indicates to performfull-screen display.

The headset jack 170D is configured to connect to a wired headset. Theheadset jack 170D may be the USB port 130, or may be a 3.5 mm openmobile terminal platform (open mobile terminal platform, OMTP) standardinterface or a cellular telecommunications industry association of theUSA (cellular telecommunications industry association of the USA, CTIA)standard interface.

The pressure sensor 180A is configured to sense a pressure signal, andcan convert the pressure signal into an electrical signal. In someembodiments, the pressure sensor 180A may be disposed on the display194. There are a plurality of types of pressure sensors 180A, forexample, a resistive pressure sensor, an inductive pressure sensor, anda capacitive pressure sensor. The capacitive pressure sensor may includeat least two parallel plates made of conductive materials. When a forceis applied to the pressure sensor 180A, capacitance between electrodeschanges. The mobile terminal 100 determines pressure strength based on acapacitance change. When a touch operation is performed on the display194, the mobile terminal 100 detects intensity of the touch operationbased on the pressure sensor 180A. The mobile terminal 100 may furthercalculate a touch location based on a detection signal of the pressuresensor 180A. In some embodiments, touch operations that are performed ata same touch location but have different touch operation intensity maycorrespond to different operation instructions. For example, when atouch operation whose touch operation intensity is less than a firstpressure threshold is performed on a Messages icon, an instruction forviewing an SMS message is executed. When a touch operation whose touchoperation intensity is greater than or equal to the first pressurethreshold is performed on a Messages icon, an instruction for creatingan SMS message is executed.

The gyro sensor 180B may be configured to determine a motion posture ofthe mobile terminal 100. In some embodiments, angular velocities of themobile terminal 100 around three axes (that is, x, y, and z axes) may bedetermined by using the gyro sensor 180B. The gyro sensor 180B may beconfigured to perform image stabilization during photographing. Forexample, when the shutter is pressed, the gyro sensor 180B detects anangle at which the mobile terminal 100 jitters, calculates, based on theangle, a distance for which a lens module needs to compensate, andallows the lens to cancel the jitter of the mobile terminal 100 throughreverse motion, to implement image stabilization. The gyro sensor 180Bmay be further used in a navigation scenario and a motion-sensing gamescenario.

The barometric pressure sensor 180C is configured to measure barometricpressure. In some embodiments, the mobile terminal 100 calculates analtitude by using a value of the barometric pressure measured by thebarometric pressure sensor 180C, to assist in positioning andnavigation.

The magnetic sensor 180D includes a Hall effect sensor. The mobileterminal 100 may detect opening and closing of a flip leather case byusing the magnetic sensor 180D. In some embodiments, when the mobileterminal 100 is a clamshell phone, the mobile terminal 100 may detectopening and closing of a flip cover based on the magnetic sensor 180D.Further, a feature such as automatic unlocking upon opening of the flipcover is set based on a detected opening or closing state of the leathercase or a detected opening or closing state of the flip cover.

The acceleration sensor 180E may detect values of accelerations invarious directions (usually on three axes) of the mobile terminal 100.When the mobile terminal 100 is still, a value and a direction ofgravity can be detected. The acceleration sensor 180E may be furtherconfigured to identify a posture of the mobile terminal, and is appliedto an application such as screen switching between a landscape mode anda portrait mode and a pedometer.

The distance sensor 180F is configured to measure a distance. The mobileterminal 100 may measure a distance by using an infrared ray or a laser.In some embodiments, in a photographing scenario, the mobile terminal100 may use the distance sensor 180F to measure a distance, to implementfast focusing.

The optical proximity sensor 180G may include, for example, alight-emitting diode (LED) and an optical detector such as a photodiode.The light-emitting diode may be an infrared light-emitting diode. Themobile terminal 100 emits infrared light to the outside by using thelight-emitting diode. The mobile terminal 100 uses the photodiode todetect infrared reflected light from a nearby object. When sufficientreflected light is detected, the mobile terminal 100 may determine thatthere is an object near the mobile terminal 100. When insufficientreflected light is detected, the mobile terminal 100 may determine thatthere is no object near the mobile terminal 100. The mobile terminal 100may detect, by using the optical proximity sensor 180G, that the userholds the mobile terminal 100 close to an ear to make a call, toautomatically turn off the screen for power saving. The opticalproximity sensor 180G may also be used in a leather case mode or apocket mode to automatically unlock or lock the screen.

The ambient light sensor 180L is configured to sense ambient lightbrightness. The mobile terminal 100 may adaptively adjust brightness ofthe display 194 based on the sensed ambient light brightness. Theambient light sensor 180L may also be configured to automatically adjusta white balance during photographing. The ambient light sensor 180L mayfurther cooperate with the optical proximity sensor 180G to detectwhether the mobile terminal 100 is in a pocket to prevent an accidentaltouch.

The fingerprint sensor 180H is configured to collect a fingerprint. Themobile terminal 100 may use a feature of the collected fingerprint toimplement fingerprint unlocking, application lock access,fingerprint-based photographing, fingerprint-based call answering, andthe like.

The temperature sensor 180J is configured to detect a temperature. Insome embodiments, the mobile terminal 100 executes a temperatureprocessing policy by using the temperature detected by the temperaturesensor 180J. For example, when the temperature reported by thetemperature sensor 180J exceeds a threshold, the mobile terminal 100lowers performance of a processor located near the temperature sensor180J, to reduce power consumption to implement thermal protection. Insome other embodiments, when the temperature is less than anotherthreshold, the mobile terminal 100 heats the battery 142 to preventabnormal shutdown of the mobile terminal 100 that is caused by the lowtemperature. In some other embodiments, when the temperature is lessthan still another threshold, the mobile terminal 100 boosts an outputvoltage of the battery 142 to prevent abnormal shutdown caused by thelow temperature.

The touch sensor 180K is also referred to as a “touch panel”. The touchsensor 180K may be disposed on the display 194, and the touch sensor180K and the display 194 form a touchscreen. The touch sensor 180K isconfigured to detect a touch operation performed on or near the touchsensor 180K. The touch sensor may transfer the detected touch operationto the application processor to determine a type of a touch event.Visual output related to the touch operation may be provided on thedisplay 194. In some other embodiments, the touch sensor 180K mayalternatively be disposed on a surface of the mobile terminal 100 at alocation different from that of the display 194.

In some embodiments, the touch sensor 180K may be configured to detect atouch operation performed by the user on a full-screen display controlon the display 194, so that the mobile terminal implements device-levelfull-screen display on the entire display in response to the touchoperation.

The bone conduction sensor 180M may obtain a vibration signal. In someembodiments, the bone conduction sensor 180M may obtain a vibrationsignal of a vibration bone of a human vocal part. The bone conductionsensor 180M may also be in contact with a human pulse, to receive ablood pressure beating signal. In some embodiments, the bone conductionsensor 180M may alternatively be disposed in the headset, to obtain abone conduction headset. The audio module 170 may obtain a voice signalthrough parsing based on the vibration signal that is of the vibrationbone of the vocal part and that is obtained by the bone conductionsensor 180M, to implement a voice function. The application processormay parse heart rate information based on the blood pressure beatingsignal obtained by the bone conduction sensor 180M, to implement a heartrate detection function.

The button 190 includes a power button, a volume button, and the like.The button 190 may be a mechanical button, or may be a touch button. Themobile terminal 100 may receive a key input, and generate a key signalinput related to a user setting and function control of the mobileterminal 100.

The motor 191 may generate a vibration prompt. The motor 191 may beconfigured to produce an incoming call vibration prompt and a touchvibration feedback. For example, touch operations performed on differentapplications (for example, photographing and audio playing) maycorrespond to different vibration feedback effects. The motor 191 mayalso correspond to different vibration feedback effects for touchoperations performed on different areas of the display 194. Differentapplication scenarios (for example, a time reminder scenario, aninformation receiving scenario, an alarm clock scenario, and a gamescenario) may also correspond to different vibration feedback effects. Atouch vibration feedback effect may be further customized.

The indicator 192 may be an indicator light, and may be configured toindicate a charging status and a power change, or may be configured toindicate a message, a missed call, a notification, and the like.

The SIM card interface 195 is configured to connect to a SIM card. TheSIM card may be inserted into the SIM card interface 195 or removed fromthe SIM card interface 195, to implement contact with or separation fromthe mobile terminal 100. The mobile terminal 100 may support one or NSIM card interfaces, where N is a positive integer greater than 1. TheSIM card interface 195 may support a nano-SIM card, a micro-SIM card, aSIM card, and the like. A plurality of cards may be simultaneouslyinserted into a same SIM card interface 195. The plurality of cards maybe of a same type or different types. The SIM card interface 195 may becompatible with different types of SIM cards. The SIM card interface 195may also be compatible with an external memory card. The mobile terminal100 interacts with a network by using the SIM card, to implementfunctions such as a call and data communication. In some embodiments,the mobile terminal 100 uses an eSIM, that is, an embedded SIM card. TheeSIM card may be embedded into the mobile terminal 100, and cannot beseparated from the mobile terminal 100.

A scenario in which a video is played in full screen mode is used as anexample to describe a hardware working procedure of the mobile terminalin this embodiment of this application. The touch sensor 180K may detectan operation that the user touches a full-screen play control. Inresponse to this operation, the processor 110 may draw a window whosesize is the same as a size of the display 194. The display 194 displaysa video play picture in full screen mode in the window, to implementdevice-level full-screen video play.

With reference to a mobile terminal having structures shown in FIG. 2and FIG. 17A, a full-screen display method provided in an embodiment ofthis application is described below by using an example in which a videois played in full screen mode in a multi-window scenario.

The mobile terminal includes a screen. The screen may be the display194, or may be a touchscreen including the display 194 and the touchsensor 180K. The screen usually includes a plurality of windows, and awindow includes a video.

The video may be a video in a video player, or a video in anotherapplication such as Weibo, WeChat, or Gallery. The video may be a videoshot by the mobile terminal, a video downloaded by the mobile terminal,or a video obtained in another manner. This is not limited in thisembodiment of this application.

The multi-window scenario may specifically include a plurality ofapplication scenarios, for example, a free multi-applicationmulti-window scenario, a single-application multi-window scenario, asplit-screen (for example, a native split-screen solution of the Google(Google) system) multi-application multi-window scenario, and apicture-in-picture scenario.

For example, in the free multi-application multi-window scenario, one ormore application windows may be displayed on the screen, and a size anda location of each window is arbitrary. The size and the location of thewindow can be modified by dragging the window by a user. In addition,different windows may be displayed in a cascade manner. The plurality ofwindows displayed on the screen may or may not occupy the entire screen.

For example, as shown in FIG. 3A, in a free multi-applicationmulti-window scenario, a plurality of windows displayed on a screen mayinclude a window 301 corresponding to a Weibo application and a window302 corresponding to a setting application.

It should be noted that, different from an existing scenario in which asingle window covers the entire screen, and only the window can bedisplayed on the entire screen, a case in which only one window isincluded in the screen may also occur in the multi-window scenario. Forexample, in a free multi-application multi-window scenario, as shown inFIG. 3B, a size of the window 301 displayed on the screen is definitelyless than a size of the screen, and another window may be furtherdisplayed on the screen when the window 301 is displayed on the screen,for example, the window 302 shown in FIG. 3A may be further displayed.Therefore, the case shown in FIG. 3B also belongs to the multi-windowscenario.

For another example, as shown in FIG. 5A or FIG. 5C, in a freemulti-application multi-window scenario, a plurality of windowsdisplayed on a screen may include a window 501 corresponding to a Weiboapplication and a window 502 corresponding to a setting application.

For another example, in a single-application multi-window scenario, aplurality of windows of a same application may be displayed on a screen,and the plurality of windows usually do not overlap with each other.

For example, as shown in FIG. 6A or FIG. 6D, in a single-applicationmulti-window scenario, a plurality of windows displayed on a screeninclude a window 601 and a window 602 that correspond to a livebroadcast application.

For another example, as shown in FIG. 7A, when a screen of a foldabledevice is unfolded, in a single-application multi-window scenario, aplurality of windows displayed on the screen may include a window 701and a window 702 that correspond to a live broadcast application.

For another example, in a split-screen multi-application multi-windowscenario, windows respectively corresponding to different applicationsmay be displayed in split-screen mode on a screen, different windowsusually do not overlap with each other, and a plurality of windowsdisplayed on the screen usually occupy an entire screen. For example,when a top-bottom split-screen mode is used, a window of an application1 may be displayed on the top of a screen, and a window of anapplication 2 may be displayed on the bottom of the screen. For anotherexample, when a left-right split-screen mode is used, a window of anapplication 1 may be displayed on the left of a screen, and a window ofan application 2 may be displayed on the right of the screen.

For example, as shown in FIG. 1A, in a split-screen multi-applicationmulti-window scenario, a plurality of windows displayed on a screen mayinclude a window 01 corresponding to a Weibo application and a window 02corresponding to a setting application.

For another example, as shown in FIG. 8A, in a split-screenmulti-application multi-window scenario, a screen includes a window 801and a window 802 that are displayed in left-right split-screen mode, thewindow 801 on the left of the screen corresponds to a Taobaoapplication, and the window 802 on the right of the screen correspondsto a live broadcast application.

For another example, as shown in FIG. 8B, in a split-screenmulti-application multi-window scenario, a screen includes a window 803and a window 804 that are displayed in top-bottom split-screen mode, thewindow 803 on the top of the screen corresponds to a live broadcastapplication, and the window 804 on the bottom of the screen correspondsto a Toutiao application.

For another example, as shown in FIG. 9A, in a split-screenmulti-application multi-window scenario, a screen includes a window 901and a window 902 that are displayed in left-right split-screen mode, thewindow 901 on the left of the screen corresponds to a live broadcastapplication, and the window 902 on the right of the screen correspondsto a Toutiao application.

In a multi-window scenario, after detecting an operation that is of auser and that indicates to play a video in full screen mode, the mobileterminal may store current multi-window status information, so thatafter exiting full-screen video play, the mobile terminal may restore amulti-window display status based on the multi-window statusinformation. For example, the status information of the window mayinclude width and height information of the window, and may furtherinclude a window mode (Window Mode) corresponding to the window, andlocation information. The window mode corresponds to an application, andeach window in a same application is in a window mode of theapplication. A window mode of a window is a window mode of anapplication corresponding to the window.

After the mobile terminal detects the operation that is of the user andthat indicates to play the video in full screen mode, a window in whichthe video is located may be referred to as a focus window (that is, awindow that is last operated by the user), and an applicationcorresponding to the focus window may be referred to as a focusapplication.

For example, refer to FIG. 3A. The operation that is of the user andthat indicates to play the video in full screen mode may be an operationthat the user taps a full-screen play control 303 in the window 301. Foranother example, the operation that is of the user and that indicates toplay the video in full screen mode may be a double-tap operationperformed by the user in a video play area in the window 301. Foranother example, the operation that is of the user and that indicates toplay the video in full screen mode may be an operation that is of theuser and that indicates, by using a voice or a gesture, to play thevideo in full screen mode, or the like.

In a multi-window scenario, after detecting the operation that is of theuser and that indicates to play the video in full screen mode, themobile terminal may determine whether to switch a display direction. Thedisplay direction includes a landscape direction and a portraitdirection. The width (that is, a side that is of the display interfaceand that has a smaller included angle with a horizontal direction of thescreen) of a display interface of a screen corresponding to thelandscape direction is greater than the height (that is, a side that isof the display interface and that has a smaller included angle with avertical direction of the screen) of the display interface. The width ofa display interface of a screen corresponding to the portrait directionis less than the height of the display interface.

When the user uses the mobile terminal, a side that is of the screen ofthe mobile terminal and that is basically parallel to the horizontaldirection (or has a smaller included angle) may be referred to as thewidth of the mobile terminal, and a side that is of the screen of themobile terminal and that is basically parallel to the vertical direction(or has a smaller included angle) may be referred to as the height ofthe mobile terminal. A landscape state is a state in which the width ofthe mobile terminal is greater than the height of the mobile terminal. Aportrait state is a state in which the height of the mobile terminal isgreater than the width of the mobile terminal. When the user flips themobile terminal to the landscape state, the mobile terminal may furtherdisplay an interface in a landscape direction in cooperation with thelandscape state. When the user flips the mobile terminal to the portraitstate, the mobile terminal may further display an interface in aportrait direction in cooperation with the portrait state.

In some embodiments, the mobile terminal may determine, according to apreset policy, whether to switch a display direction. If the mobileterminal determines, according to the preset policy, that the displaydirection does not need to be switched, the mobile terminal displays avideo play interface in full screen mode on the entire screen of themobile terminal, to implement device-level full-screen video playinterface display (or referred to as device-level full-screen videoplay). If the mobile terminal determines, according to the presetpolicy, that the display direction needs to be switched, after switchingthe display direction, the mobile terminal displays a video playinterface in full screen mode on the entire screen of the mobileterminal, to implement device-level full-screen display.

For example, in a preset policy, if a difference between the width andthe height of the screen of the mobile terminal is less than or equal toa preset value, that is, an aspect ratio of the screen (that is, a ratiobetween the width and the height of the screen) is close to 1:1, thewidth and the height of the screen differ slightly, and the screen isclose to square. In this case, display effects of the mobile terminal inthe landscape state and the portrait state differ slightly. Therefore,after detecting the operation that is of the user and that indicates toplay the video in full screen mode, the mobile terminal does not switchthe display direction regardless of whether the mobile terminal iscurrently in the landscape state or the portrait state.

For example, for some foldable devices (for example, foldable phones),when the screen is folded (as shown in FIG. 7B), a difference betweenthe width and the height of the screen is large. When the screen isunfolded (as shown in FIG. 7A), a difference between the width and theheight of the screen is small, and an aspect ratio of the screen isclose to 1:1. After detecting, in an unfolded state, the operation thatis of the user and that indicates to play the video in full screen mode,the foldable device does not switch the display direction regardless ofwhether the foldable device is currently in the landscape state or theportrait state.

If the difference between the width and the height of the screen of themobile terminal is greater than the preset value, the width and theheight of the screen differ greatly. In this case, display effects ofthe mobile terminal in the landscape state and the portrait state differgreatly, and a device-level full-screen display effect of the mobileterminal in the landscape state is better. Therefore, after the mobileterminal detects the operation that is of the user and that indicates toplay the video in full screen mode, if the mobile terminal is currentlyin the portrait state, and the current display direction is the portraitdirection, the mobile terminal may switch the display direction to thelandscape direction, and then display the video play interface in fullscreen mode on the entire screen. For ease of viewing, the user may flipthe mobile terminal to the landscape state, to correspond to thelandscape direction. If the mobile terminal is currently in thelandscape state, and the current display direction is the landscapedirection, the mobile terminal does not switch the display direction,and may directly display the video play interface in full screen mode onthe entire screen.

In some other embodiments, in a multi-window scenario, after detectingthe operation that is of the user and that indicates to play the videoin full screen mode, if the mobile terminal is currently in the portraitstate, and the display direction is the portrait direction, the mobileterminal may prompt, by displaying information, by using a voice, or inanother manner, the user to determine whether to switch the displaydirection. If the mobile terminal detects an operation that is of theuser and that indicates, by tapping a control, by using a voice or agesture, or the like, the mobile terminal to switch the displaydirection, the mobile terminal switches the portrait direction to thelandscape direction. If the mobile terminal detects an operation that isof the user and that indicates the mobile terminal not to switch thelandscape/portrait direction, or does not detect, within presetduration, an operation that is of the user and that indicates to switchthe landscape/portrait direction, the mobile terminal does not switchthe landscape/portrait direction, and keeps the current landscapedirection or portrait direction unchanged. For ease of viewing, themobile terminal may further prompt the user to flip the mobile terminalto the landscape state, to correspond to the landscape direction.

For example, in the multi-window scenario shown in FIG. 5A, afterdetecting an operation of tapping a full-screen play control 503 in thewindow 501 by the user, as shown in FIG. 10A, the mobile terminaldisplays a prompt box 1001, to notify the user that the current displaydirection is the portrait direction, and prompt the user to determinewhether to switch to the landscape direction to improve full-screen playexperience. If the mobile terminal detects an operation of tapping acontrol 1002 by the user, the mobile terminal switches the displaydirection from the portrait direction to the landscape direction. Inaddition, after detecting the operation of tapping the control 1002 bythe user, as shown in FIG. 10B, the mobile terminal may further displaya prompt box 1003, to prompt the user to flip the mobile terminal to thelandscape state, so as to perform display in the landscape direction inthe landscape state. After the user flips the mobile terminal to thelandscape state, as shown in FIG. 5B, the mobile terminal may play avideo in full screen mode on the entire display in the landscapedirection in the landscape state.

In some other embodiments, the user may perform a preset setting in asystem or a video application. After the mobile terminal detects thatthe user indicates to play the video in full screen mode, if the mobileterminal is currently in the portrait state and the portrait direction,the mobile terminal determines whether to switch the display direction.The mobile terminal determines, based on a user setting, whether toswitch the display direction. For example, for a setting interface,refer to an interface in a window 1101 shown in FIG. 11.

When the video play interface is displayed in full screen mode on theentire screen of the mobile terminal, to implement device-levelfull-screen display, the entire screen of the mobile terminal is used todisplay the video play interface. A size of the video play interface isthe same as a size of the screen.

In some embodiments, when the video play interface is displayed in fullscreen mode on the entire screen of the mobile terminal, to implementdevice-level full-screen display, the entire screen of the mobileterminal is used to display a window, the window is used to play avideo, a size of the window is the same as a size of the screen, and asize of a video picture matches the size of the screen. The mobileterminal no longer displays another window of a focus application and awindow of another application on the screen.

For example, in the scenario shown in FIG. 1A, FIG. 3A, or FIG. 3B, fora schematic diagram in which the mobile terminal plays the video in fullscreen mode on the entire screen, refer to FIG. 4A. As shown in FIG. 4A,only one full-screen play window 401 is displayed on an entire screen.The full-screen play window is smaller than the screen. However, thefull-screen play window is larger than the window of the Weiboapplication shown in FIG. 1A, FIG. 3A, or FIG. 3B. In this way, comparedwith the window of the Weibo application shown in FIG. 1A, FIG. 3A, orFIG. 3B in which the video is played in full screen mode, in aninterface shown in FIG. 4A, a range for displaying a video play pictureis larger, and content in another window is not displayed. Therefore,the user does not see interference information in the another window.Therefore, a full-screen play effect shown in FIG. 4A may provide betterviewing experience for the user.

For example, in the scenario shown in FIG. 1A, FIG. 3A, or FIG. 3B, fora schematic diagram in which the mobile terminal plays the video in fullscreen mode on the entire screen, refer to FIG. 4B or FIG. 4C. As shownin FIG. 4B or FIG. 4C, a size of the full-screen play window is the sameas or basically the same as a size of the screen. A full-screen playeffect shown in FIG. 4B and FIG. 4C may provide better immersive viewingexperience for the user.

In the following embodiments of this application, descriptions areprovided mainly by using an example in which a size of a window in whicha video is played in full screen mode (that is, a window in which atarget object is displayed in full screen mode) is the same as orbasically the same as a size of a screen.

When the video is played in full screen mode, mutual switching may beperformed between an interface shown in FIG. 4B and an interface shownin FIG. 4C. For example, when the mobile terminal displays the interfaceshown in FIG. 4B, if the mobile terminal detects a tap operationperformed by the user in the interface, the mobile terminal switches tothe interface shown in FIG. 4C. When the mobile terminal displays theinterface shown in FIG. 4C, if the mobile terminal detects a tapoperation performed by the user in the interface, the mobile terminalswitches to the interface shown in FIG. 4B.

It should be noted that device-level full-screen display means that thevideo play interface basically fills the entire screen of the mobileterminal, and some areas of the screen may be reserved for a statusindicator, a notification message, and the like. Device-levelfull-screen display does not require a video picture to fully occupy allareas of the screen. For example, as shown in FIG. 4B and FIG. 4C, thevideo picture may cover the entire width of the screen horizontally, buta blank edge is left between the video picture and each of an upper edgeline and a lower edge line of the screen vertically, to adapt to apicture proportion of the video picture.

The following separately describes a display direction and a full-screenvideo play situation in different application scenarios by usingexamples.

For example, in a free multi-application multi-window scenario, afterdetecting an operation that is of a user and that indicates to play avideo in full screen mode, the mobile terminal determines whether toswitch a display direction, and then displays a video play interface infull screen mode on an entire screen of the mobile terminal.

For example, as shown in FIG. 3A or FIG. 3B, in a free multi-applicationmulti-window scenario, the mobile terminal is in a landscape state, anda display direction is a landscape direction. After detecting theoperation that is of the user and that indicates to play the video infull screen mode, as shown in FIG. 4B or FIG. 4C, the mobile terminaldisplays the video play interface in full screen mode in a landscapestate.

For example, as shown in FIG. 5A, in a free multi-applicationmulti-window scenario, the mobile terminal is in a portrait state, and adisplay direction is a portrait direction. After detecting the operationthat is of the user and that indicates to play the video in full screenmode, the mobile terminal switches to a landscape direction, and asshown in FIG. 5B, displays the video play interface in full screen modein a landscape state.

For example, as shown in FIG. 5C, in a free multi-applicationmulti-window scenario, the mobile terminal is in a portrait state, and adisplay direction is a portrait direction. After detecting the operationthat is of the user and that indicates to play the video in full screenmode, as shown in FIG. 5D, the mobile terminal displays the video playinterface in full screen mode in a portrait state.

For another example, in a single-application multi-window scenario,after detecting an operation that is of a user and that indicates toplay a video in full screen mode, the mobile terminal determines whetherto switch a display direction, and then displays a video play interfacein full screen mode on an entire screen of the mobile terminal.

For example, as shown in FIG. 6A, in a single-application multi-windowscenario, the mobile terminal is in a landscape state, and a displaydirection is a landscape direction. After detecting the operation thatis of the user and that indicates to play the video in full screen mode,as shown in FIG. 6B or FIG. 6C, the mobile terminal displays the videoplay interface in full screen mode in a landscape state.

For example, as shown in FIG. 6D, in a single-application multi-windowscenario, the mobile terminal is in a portrait state, and a displaydirection is a portrait direction. After detecting the operation that isof the user and that indicates to play the video in full screen mode,the mobile terminal switches to a landscape direction, and as shown inFIG. 6B or FIG. 6C, displays the video play interface in full screenmode in a landscape state.

For example, as shown in FIG. 7A, in a single-application multi-windowscenario, the mobile terminal is in a portrait state, and a displaydirection is a portrait direction. After detecting the operation that isof the user and that indicates to play the video in full screen mode, asshown in FIG. 7C, the mobile terminal displays the video play interfacein full screen mode in a portrait state.

For another example, in a split-screen multi-application multi-windowscenario, after detecting an operation that is of a user and thatindicates to play a video in full screen mode, the mobile terminal maydetermine whether to switch a display direction, and then display avideo play interface in full screen mode on an entire screen of themobile terminal.

For example, as shown in FIG. 1A, in a split-screen multi-applicationmulti-window scenario, the mobile terminal is in a landscape state, anda display direction is a landscape direction. After detecting theoperation that is of the user and that indicates to play the video infull screen mode, as shown in FIG. 4B or FIG. 4C, the mobile terminaldisplays the video play interface in full screen mode in a landscapestate.

For another example, as shown in FIG. 8A, in a split-screenmulti-application multi-window scenario, the mobile terminal is in alandscape state, and a display direction is a landscape direction. Afterdetecting the operation that is of the user and that indicates to playthe video in full screen mode, as shown in FIG. 6B or FIG. 6C, themobile terminal displays the video play interface in full screen mode ina landscape state.

For example, as shown in FIG. 8B, in a split-screen multi-applicationmulti-window scenario, the mobile terminal is in a portrait state, and adisplay direction is a portrait direction. After detecting the operationthat is of the user and that indicates to play the video in full screenmode, the mobile terminal switches to a landscape direction, and asshown in FIG. 6B or FIG. 6C, displays the video play interface in fullscreen mode in a landscape state.

For example, as shown in FIG. 9A, in a split-screen multi-applicationmulti-window scenario, the mobile terminal is in a portrait state, and adisplay direction is a portrait direction. After detecting the operationthat is of the user and that indicates to play the video in full screenmode, as shown in FIG. 9B, the mobile terminal displays the video playinterface in full screen mode in a portrait state.

When a ratio between a long side and a short side of the mobile terminalis much greater than 1:1, that is, a difference between the width andthe height of the screen of the mobile terminal is usually greater thana preset value, the mobile terminal may play a video in full screen modein a landscape state. For example, this case may correspond to thescenario shown in FIG. 4B or FIG. 6B. For example, the mobile terminalmay be a mobile device whose long side and short side differ greatly,for example, a tablet computer or a mobile phone.

When a ratio between a long side and a short side of the mobile terminalis close to 1:1, that is, a difference between the width and the heightof the screen of the mobile terminal is usually less than or equal to apreset value, the mobile terminal may display a video play interface infull screen mode in a landscape state, or may display a video playinterface in full screen mode in a portrait state. For example, thiscase may correspond to the scenario shown in FIG. 5D, FIG. 7C, or FIG.9B. For example, the mobile terminal may be a device whose long side andshort side differ slightly, for example, a foldable device in anunfolded state. For example, the foldable device is a foldable phone. Anaspect ratio of the screen in a folded state may be 16:9, and an aspectratio of the screen in an unfolded state may be 8:9, and is close to1:1.

It may be understood that in FIG. 5B, FIG. 5D, FIG. 6B, FIG. 6C, FIG.7C, and FIG. 9B, descriptions are provided by using an example in whicha size of a window in which a video is played in full screen mode (thatis, a window in which a target object is displayed in full screen mode)is the same as or basically the same as a size of a display. In anotherembodiment, similar to FIG. 4A, the size of the window in which thevideo is played in full screen mode and that is shown in FIG. 5B, FIG.5D, FIG. 6B, FIG. 6C, FIG. 7C, and FIG. 9B may alternatively be lessthan the size of the screen, and is greater than a size of the window inwhich the video is located, that is in a multi-window display statusexisting before full-screen video play, and that is shown in FIG. 1A,FIG. 3A, FIG. 3B, FIG. 5A, FIG. 5C, FIG. 6A, FIG. 6D, FIG. 8A, FIG. 8B,FIG. 7A, and FIG. 9A

When playing the video in full screen mode on the entire screen, afterdetecting an operation that is of the user and that indicates to exitfull-screen video play, the mobile terminal may exit a full-screen videoplay state, and restore a multi-window display status existing beforefull-screen video play.

For example, the operation that is of the user and that indicates toexit full-screen video play may be an operation that the user taps afull-screen exit control 402 shown in FIG. 4C, an operation that theuser taps a back (back) control 403, or an operation that the user tapsa back button 404.

In some embodiments, after detecting the operation that is of the userand that indicates to exit full-screen video play, the mobile terminalmay restore, based on previously stored multi-window status information,a multi-window display status existing before full-screen video play,for example, restore statuses such as a window size, a window mode, anda window location of each of a plurality of windows. It should be notedthat restoring a multi-window display status does not include restoringmulti-window display content existing before full-screen video play.Display content in each window may change in real time. Multi-windowdisplay content obtained after full-screen video play exits may be thesame as or may be different from the multi-window display contentexisting before full-screen video play.

For example, for a correspondence between a schematic diagram used toindicate a multi-window display status existing before full-screen videoplay interface display, a schematic diagram used to indicate a displaystatus that is of a video play window and that is obtained duringfull-screen video play interface display, and a schematic diagram usedto indicate a multi-window display status obtained after full-screenvideo play interface display exits, refer to Table 1.

TABLE 1 Multi-window Display Multi-window display status status obtaineddisplay status existing before during obtained after full-screenfull-screen full-screen video video play video play play exits FIG. 1A,FIG. 3A, FIG. 4B/FIG. 4C FIG. 1A and FIG. 3B FIG. 5A FIG. 5B FIG. 5AFIG. 5C FIG. 5D FIG. 5C FIG. 6A, FIG. 6D, FIG. 6B/FIG. 6C FIG. 6A, FIG.6D, FIG. 8A, and FIG. 8B FIG. 8A, and FIG. 8B FIG. 7A FIG. 7C FIG. 7AFIG. 9A FIG. 9B FIG. 9A

For example, in the scenario shown in FIG. 1A, after detecting theoperation that is of the user and that indicates to play the video infull screen mode, the mobile terminal may display the interface shown inFIG. 4C. In the scenario shown in FIG. 4C, after detecting the operationthat is of the user and that indicates to exit full-screen video play,the mobile terminal restores statuses such as a window size, a windowmode, a window location, and a display direction shown in FIG. 1A. Ifthe display direction is switched from the portrait direction to thelandscape direction when the video is played in full screen mode on theentire screen, after exiting full-screen video play, the mobile terminalmay further switch the display direction from the landscape directionback to the portrait direction.

For example, in the scenario shown in FIG. 12A, the display direction ofthe mobile terminal is a portrait direction. After detecting theoperation that is of the user and that indicates to play the video infull screen mode, the mobile terminal may switch to a landscapedirection, and display an interface shown in FIG. 6B. In the scenarioshown in FIG. 6B, after detecting the operation that is of the user andthat indicates to exit full-screen video play, the mobile terminal maydisplay an interface shown in FIG. 12B. In FIG. 12B, after exitingfull-screen display, the mobile terminal switches back to the portraitdirection, and displays, in a landscape state in the portrait direction,a window corresponding to a Taobao application and a windowcorresponding to a live broadcast application. After the user flips themobile terminal to a portrait state, as shown in FIG. 12A, the mobileterminal may display, in the portrait state in the portrait direction,the window corresponding to the Taobao application and the windowcorresponding to the live broadcast application.

In some other embodiments, after detecting the operation that is of theuser and that indicates to exit full-screen video play, the mobileterminal may adaptively set locations and sizes of a plurality ofwindows based on a current landscape state or portrait state, so that awindow display effect adapts to a current flipping state and holdingmanner that are used by the user for the mobile terminal, to improve useexperience of the user.

For example, in the scenario shown in FIG. 12A, the display direction ofthe mobile terminal is a portrait direction. After detecting theoperation that is of the user and that indicates to play the video infull screen mode, the mobile terminal may switch to a landscapedirection, and display an interface shown in FIG. 6B. In the scenarioshown in FIG. 6B, after detecting the operation that is of the user andthat indicates to exit full-screen video play, the mobile terminal maydisplay an interface shown in FIG. 12C. In FIG. 12C, after exitingfull-screen display, the mobile terminal does not switch back to theportrait direction, but still displays, in the landscape state in thelandscape direction, the window corresponding to the Taobao applicationand the window corresponding to the live broadcast application.

In some other embodiments, after detecting the operation that is of theuser and that indicates to play the video in full screen mode, themobile terminal may prompt, by displaying information, by using a voice,or the like, the user to determine whether to display a video playinterface in full screen mode on the entire screen of the mobileterminal or display a video play interface in full screen mode in anapplication window of a partial area of the screen. The mobile terminalperforms a corresponding full-screen display operation according to aninstruction of the user.

For example, after the mobile terminal detects, in the scenario shown inFIG. 1A, the operation that is of the user and that indicates to playthe video in full screen mode, as shown in FIG. 13, the mobile terminalmay display a prompt box 1301, to prompt the user to determine whetherto play the video in full screen mode on the entire screen. If themobile terminal detects an operation of tapping a control 1302 by theuser, as shown in FIG. 4B or FIG. 4C, the mobile terminal plays thevideo in full screen mode on the entire screen. If the mobile terminaldetects an operation of tapping a control 1303 by the user, as shown inFIG. 1B, the mobile terminal plays the video in full screen mode in thewindow of the Weibo application.

In some other embodiments, as shown in FIG. 14, the video play interfaceincludes a full-screen play control 1401 and a full-screen play control1402. After detecting an operation of tapping the control 1402 by theuser, as shown in FIG. 4B or FIG. 4C, the mobile terminal displays thevideo play interface in full screen mode on the entire screen by usingthe method provided in this embodiment of this application, where a sizeof a video picture matches a size of the entire screen. After detectingan operation of tapping the control 1401 by the user, as shown in FIG.1B, the mobile terminal displays the video play interface in full screenmode in an application window in which the video is located, where asize of a video picture matches a size of the window 01 of the Weiboapplication.

In some other embodiments, after detecting a preset first voice or apreset first gesture, the mobile terminal displays the video playinterface in full screen mode on the entire screen of the mobileterminal by using the method provided in this embodiment of thisapplication, where a size of a video picture matches a size of theentire screen. After detecting a preset second voice or a preset secondgesture, the mobile terminal displays the video play interface in fullscreen mode in an application window of a partial area of the screen,where a size of a video picture matches a size of the application windowof the partial area.

In some other embodiments, mutual switching may be performed between adevice-level full-screen display mode and an intra-window full-screendisplay mode. For example, in the device-level full-screen display modeshown in FIG. 4B, the interface displayed by the mobile terminalincludes a full-screen mode switching control. After detecting anoperation of tapping the full-screen mode switching control by the user,the mobile terminal switches to the intra-window full-screen displaymode shown in FIG. 1B. For another example, after detecting a pinchclosed operation performed by the user in the interface shown in FIG.4B, the mobile terminal switches to the intra-window full-screen displaymode shown in FIG. 1B. For another example, in the intra-windowfull-screen display mode shown in FIG. 1B, if the mobile terminaldetects an instruction that is of the user and that instructs, by usinga voice, to switch the full-screen display mode, the mobile terminalswitches to the device-level full-screen display mode shown in FIG. 4B.

Descriptions are provided above by using an example in which the mobileterminal displays the video play interface in full screen mode in ascenario in which the video is played in full screen mode. In anotherapplication scenario, the target object may be displayed on the entirescreen of the mobile terminal by using the full-screen display methodprovided in the foregoing embodiments of this application.

For example, in a multi-window scenario, a window includes a picture. Inresponse to an instruction operation of the user, the mobile terminalmay display the picture in full screen mode on an entire screen, toimprove immersive experience of browsing the picture by the user. Thepicture may be a picture in Gallery, a picture in a browser, a picturein WeChat Moments, another picture, or the like.

For example, as shown in FIG. 15A, in a multi-window scenario, a window1501 corresponding to a Weibo application and a window 1502corresponding to a browser application are included. After detecting atapping operation performed by the user on a picture in the window 1502,as shown in FIG. 15B, the mobile terminal displays the picture in fullscreen mode on the entire screen.

For another example, in a multi-window scenario, a window is a window ofa reader application. In response to an instruction operation of theuser, the mobile terminal may display a reader interface in full screenmode on an entire screen, to improve immersive experience of reading ane-book by the user.

For example, as shown in FIG. 16A, in a multi-window scenario, a window1601 corresponding to a Weibo application and a window 1602corresponding to a reader application are included. After detecting anoperation of tapping a control 1603 by the user, as shown in FIG. 16B,the mobile terminal displays text content of the reader in full screenmode on the entire screen.

For another example, in a multi-window scenario, a window is a window ofa game application. In response to an instruction operation of the user,the mobile terminal may display a game interface in full screen mode onan entire screen, so that the user can be better immersed in a game.

A software system of the mobile terminal may use a layered architecture,an event-driven architecture, a microkernel architecture, a microservicearchitecture, or a cloud architecture. In this embodiment of thisapplication, an Android (Android) system with the layered architectureis used as an example to describe a software structure of the mobileterminal.

FIG. 17A is a block diagram of a software structure of a mobile terminalaccording to an embodiment of this application. In a layeredarchitecture, software is divided into several layers, and each layerhas a clear role and task. The layers communicate with each otherthrough a software interface. In some embodiments, an Android system isdivided into four layers, that is, an application layer, an applicationframework layer, an Android runtime (Android runtime) and systemlibrary, and a kernel layer from top to bottom. The application layermay include a series of application packages.

As shown in FIG. 17A, the application packages may include applicationssuch as Camera, Gallery, Calendar, Phone, Map, Navigation, WLAN,Bluetooth, Music, Videos, and Messages.

The application framework layer provides an application programminginterface (application programming interface, API) and a programmingframework for an application at the application layer. The applicationframework layer includes some predefined functions.

As shown in FIG. 17A, the application framework layer may include anactivity manager (Activity Manager), a window manager (Window Manager),a media system (Media System), a content provider, a view system, aphone manager, a resource manager, a notification manager, and the like.

The activity manager is configured to be responsible for managingactivity-related transactions such as start, a status, and a lifecycleof an activity (activity) of an application. The activity is anapplication component, and may provide a screen, so that a userinteracts with the mobile terminal through the screen, to complete atask.

The window manager is configured to manage a window program. The windowmanager may obtain a size of a display, manage a size, display, andmotion of a window, and determine whether there is a status bar, performscreen locking, take a screenshot, and the like.

The media system is configured to manage media information of anapplication.

The content provider is configured to: store and obtain data, and makethe data accessible to an application. The data may include a video, animage, an audio, calls that are made and received, a browsing historyand bookmarks, an address book, and the like.

The view system includes visual controls, such as a control fordisplaying a text and a control for displaying a picture. The viewsystem may be configured to construct an application. A displayinterface may include one or more views. For example, a displayinterface including an SMS message notification icon may include a textdisplay view and a picture display view.

The phone manager is configured to provide a communication function ofthe mobile terminal, for example, management of a call status (includinganswering or declining).

The resource manager provides, for an application, various resourcessuch as a localized character string, an icon, a picture, a layout file,and a video file.

The notification manager enables an application to display notificationinformation in a status bar, and may be configured to convey anotification type message. The notification manager may automaticallydisappear after a short pause without user interaction. For example, thenotification manager is configured to notify download completion,provide a message notification, and the like. The notification managermay alternatively be a notification that appears in the status bar atthe top of the system in a form of a graph or a scroll bar text, forexample, a notification of an application running on the background or anotification that appears on the screen in a form of a dialog window.For example, text information is displayed in the status bar, an alerttone is played, the mobile terminal vibrates, and the indicator lightblinks.

The Android runtime includes a core library and a virtual machine. TheAndroid runtime is responsible for scheduling and management of theAndroid system.

The core library includes two parts: a function that needs to be invokedin Java language and a core library of Android.

The application layer and the application framework layer run on thevirtual machine. The virtual machine executes Java files at theapplication layer and the application framework layer as binary files.The virtual machine is configured to implement functions such as objectlifecycle management, stack management, thread management, security andexception management, and garbage collection.

The system library may include a plurality of functional modules, forexample, a surface manager (surface manager), a media library (MediaLibrary), a three-dimensional graphics processing library (for example,OpenGL ES), and a 2D graphics engine (for example, SGL).

The surface manager is configured to: manage a display subsystem andprovide fusion of 2D and 3D layers for a plurality of applications.

The media library supports playback and recording of audio and videos ina plurality of commonly used formats, static image files, and the like.The media library may support a plurality of audio and video codingformats, for example, MPEG-4, H.264, MP3, AAC, AMR, JPG, and PNG.

The three-dimensional graphics processing library is configured toimplement three-dimensional graphics drawing, image rendering,composition, layer processing, and the like.

The 2D graphics engine is a drawing engine for 2D drawing.

The kernel layer is a layer between hardware and software. The kernellayer includes at least a display driver, a camera driver, an audiodriver, and a sensor driver. The display driver may be configured to:drive a display, control a drive current, and the like.

A scenario in which a video is played in full screen mode is used as anexample below to describe a software working procedure of the mobileterminal in this embodiment of this application.

For example, in the multi-window scenario shown in FIG. 1A or FIG. 3A,the display of the mobile terminal includes the window corresponding tothe Weibo application and the window corresponding to the settingapplication. After detecting the operation that is of the user and thatindicates to play the video in full screen mode, the mobile terminaldisplays the video play interface in full screen mode on the entiredisplay.

Specifically, the touch sensor may detect a touch operation. After thetouch sensor detects the operation that is of the user and thatindicates to play the video in full screen mode, an application at theapplication layer corresponding to the window in which the video islocated notifies the application framework layer. After determining thatthe video is played in full screen mode, the application framework layerdraws a window whose size is the same as a size of the display, andprovides window drawing data to the display driver at the kernel layer.The display driver controls, based on the window drawing data, thedisplay to display a corresponding window, and displays video content inthe window, to implement device-level full-screen video play.

When the touch sensor receives a touch operation, a correspondinghardware interruption is sent to the kernel layer. The kernel layerprocesses the touch operation into an original input event (includinginformation such as touch coordinates and a timestamp of the touchoperation). The original input event is stored at the kernel layer. Theapplication framework layer obtains the original input event from thekernel layer, and identifies a control corresponding to the input event.The touch operation is a touch tap operation, and a controlcorresponding to the tap operation is a full-screen play control in awindow of a Weibo application. The window of the Weibo application is afocus window, and the Weibo application is a focus application.

As shown in FIG. 17B, an application (that is, a focus application) maycall the function setRequestOrientation, and apply for a displaydirection of a landscape direction. The activity manager firstdetermines whether a first preset condition is met. If the first presetcondition is met, the activity manager further determines whether toswitch the display direction. If the first preset condition is not met,the activity manager does not perform processing.

In some embodiments, the first preset condition may include: determiningwhether an application or a system requests to apply for a landscapedirection. If the application requests to apply for the landscapedirection, the application is a focus application corresponding to afocus window, and is not currently in a full-screen video play state(that is, a video is not currently played in full screen mode on theentire display).

In addition, it should be noted that, when the mobile terminal switchesfrom a portrait state to a landscape state because the user flips themobile terminal, a sensor such as a gyro may detect a posture change ofthe mobile terminal, and report the posture change to the system. Thesystem may call the function setRequestOrientation, and apply for adisplay direction of a landscape direction.

In some other embodiments, because an audio and video decoder is in aworking state when a video is played, the first preset condition mayfurther include that the Weibo application is invoking the audio andvideo decoder, and the activity manager determines, based on mediainformation that is of the Weibo application and that is obtained fromthe media system, that the audio and video decoder is in the workingstate. In this way, the activity manager may more accurately determine,based on the first preset condition, that full-screen video play needsto be triggered.

In addition, when the target object is a game interface, if the activitymanager determines that an application that requests to apply for adisplay direction is a focus application corresponding to a focuswindow, the display direction for which the focus application applies isa landscape direction, the application is not currently in a full-screenvideo play state, and a video decoder is in a working state, theactivity manager may more accurately determine that full-screen videoplay needs to be triggered.

A plurality of apps on the mobile terminal can play audio. The operatingsystem provides an API for enabling apps to share an audio focus (audiofocus). At a same moment, only one app can obtain and hold an audiofocus. When an app needs to output audio, the app needs to request theaudio focus. The app can play audio only after the audio focus isauthorized to the app. To be specific, only the application that obtainsthe audio focus can play audio. Therefore, in some other embodiments,the first preset condition may further include that the Weiboapplication obtains the audio focus, and the activity managerdetermines, based on the media information that is of the Weiboapplication and that is obtained from the media system, that the Weiboapplication obtains the audio focus, so that the activity manager canmore accurately determine, based on the first preset condition, thatfull-screen video play needs to be triggered.

In some other embodiments, because most video play windows are of aSurfaceView type currently, the first preset condition may furtherinclude that the activity manager includes a subwindow of a SurfaceViewtype based on a window in which a full-screen play control is locatedand that is obtained from the window manager, where the subwindow may bea video play window, so that the activity manager can more accuratelydetermine, based on the first preset condition, that full-screen videoplay needs to be triggered.

As shown in FIG. 17B, after determining that the video can be played infull screen mode, the activity manager stores current multi-windowstatus information, so that after exiting full-screen video play, theactivity manager may restore a multi-window display status based on themulti-window status information.

As shown in FIG. 17B, after determining that the video can be played infull screen mode on the entire display, the activity manager determineswhether to switch the display direction. It can be learned from theforegoing descriptions that the activity manager may determine,according to a preset policy, a preset setting of the user, or a currentinstruction of the user, whether to switch the display direction.Details are not described herein. If the activity manager determinesthat the display direction needs to be switched, the activity managermay switch a portrait direction to a landscape direction, and storedirection switching information. The direction switching information isused to indicate that the display direction is switched from theportrait direction to the landscape direction.

As shown in FIG. 17B, the activity manager may respectively set valuesof the width and the height of the focus window (that is, the window ofthe Weibo application) to values of the width and the height of thedisplay, so that a size of the focus window is the same as a size of thedisplay. In some cases, the activity manager may further set a windowmode (Window Mode) of the focus window to a full screen (full screen)mode, that is, set a window mode of the focus application correspondingto the focus window to a full screen mode. Therefore, the video playinterface in the window of the Weibo application is displayed in fullscreen mode on the entire display.

For example, in a free multi-application multi-window scenario, themobile terminal displays a plurality of windows in a free mode (freemode). The window mode of the focus window is a free mode and does notneed to be switched to a full screen (full screen) mode. The activitymanager may respectively set values of the width and the height of thefocus window to values of the width and the height of the display.

For another example, in a single-application multi-window scenario, aplurality of windows are displayed in full-screen mode. The window modeof the focus window does not need to be switched to a full-screen mode.The activity manager may respectively set values of the width and theheight of the focus window to values of the width and the height of thedisplay.

For another example, in a split-screen multi-application multi-windowscenario, the mobile terminal displays a plurality of windows insplit-screen mode. The window mode of the focus window is a split-screenmode. The activity manager may switch the split-screen mode to afull-screen mode. After the split-screen mode is switched to thefull-screen mode, the activity manager may further respectively setvalues of the width and the height of the focus window to values of thewidth and the height of the display.

After respectively setting the values of the width and the height of thefocus window (that is, the window of the Weibo application) to thevalues of the width and the height of the display, or setting thesplit-screen mode to the full-screen mode, the activity manager mayupdate status information such as information about the width and theheight of the focus window and the window mode of the focus window in aconfiguration (Configuration) file of the focus application, so that thewindow information is called back to the focus application by using theconfiguration file.

As shown in FIG. 17B, the window manager may invoke the interfaceonConfigurationChanged, obtain updated information about the width andthe height of the focus window from the configuration file of the focusapplication, and draw, based on the updated information about the widthand the height of the focus window, a window whose size is the same as asize of the display. The window manager provides window drawing data tothe display driver.

As shown in FIG. 17B, the display driver drives, based on the windowdrawing data, the display to display the window whose size is the sameas the size of the display. In addition, the display may further obtainvideo data from a video file, to display video content in the windowwhose size is the same as the size of the display, so as to implementdevice-level full-screen video play.

After detecting the operation that is of the user and that indicates toexit full-screen video play, the mobile terminal exits device-levelfull-screen video play, and restores a multi-window display statusexisting before full-screen video play.

Specifically, when the touch sensor receives a touch operation, acorresponding hardware interruption is sent to the kernel layer. Thekernel layer processes the touch operation into an original input event.The original input event is stored at the kernel layer. The applicationframework layer obtains the original input event from the kernel layer,and identifies a control corresponding to the input event. The touchoperation is a touch tap operation, and a control corresponding to thetap operation is a back button disposed on the mobile terminal, afull-screen exit control or a back (back) control disposed on the videoplay interface, or the like.

As shown in FIG. 17B, an application (that is, a focus application)calls setRequestOrientation, and applies for a display direction of anon-landscape direction. If the activity manager determines that asecond preset condition is met, the activity manager exits full-screenvideo play. The second preset condition includes that the application iscurrently in a full-screen video play state, that is, a video playinterface is displayed on the entire display, and the activity managerdetermines, based on previously stored multi-window status information,that a previous historical state is a multi-window state.

As shown in FIG. 17B, the activity manager sets values of the width andthe height of each window and a window mode of each window in thepreviously stored multi-window status information to values of the widthand the height of each current window and a window mode of each currentwindow. In addition, the activity manager updates, based on themulti-window status information, values of the width and the height ofthe window, the window mode of the window, and the like in configurationfiles of applications respectively corresponding to a plurality ofwindows. After determining, based on the previously stored directionswitching information, that the display direction is switched from theportrait direction to the landscape direction, the activity manager mayfurther switch back to the portrait direction.

As shown in FIG. 17B, the window manager may invoke the interfaceonConfigurationChanged, obtain updated related information of the windowfrom the configuration file, draw, based on the updated relatedinformation of the window, windows respectively corresponding to theWeibo application and the setting application, and provide windowdrawing data to the display driver.

As shown in FIG. 17B, the display driver drives, based on the windowdrawing data, the display to display a plurality of windows, andrestores a multi-window display status existing before full-screen videoplay. The display may further obtain content data of the applicationfrom a video file, and display corresponding content in each windowbased on the content data of the application. Therefore, the mobileterminal exits device-level full-screen video play.

In addition, FIG. 17B mainly describes, from a perspective of software,a related procedure of the full-screen display method provided in theembodiments of this application. FIG. 18 provides another schematicdiagram, and mainly describes, from a perspective of a mobile terminal,a related procedure of the full-screen display method provided in theforegoing embodiments of this application.

An embodiment of this application further provides a mobile terminal.The mobile terminal may include a display unit, a detection unit, aswitching unit, an obtaining unit, and the like. These units may performthe steps in the foregoing embodiments to implement the device-levelfull-screen display method.

An embodiment of this application further provides a mobile terminal,including one or more processors, a memory, a display, and one or morecomputer programs. The one or more computer programs are stored in thememory, and the one or more computer programs include instructions. Whenthe instructions are executed by the one or more processors, the mobileterminal is enabled to perform the steps in the foregoing embodiments,to implement the device-level full-screen display method.

For example, when the mobile terminal is the device shown in FIG. 2, theprocessor in the mobile terminal may be the processor 110 in FIG. 2, thememory in the mobile terminal may be the internal memory 121 in FIG. 2,and the display in the mobile terminal may be the display 194 in FIG. 2.

An embodiment of this application further provides a computer storagemedium. The computer storage medium stores computer instructions, andwhen the computer instructions are run on a mobile terminal, the mobileterminal is enabled to perform the foregoing related method steps toimplement the device-level full-screen display method in the foregoingembodiments.

An embodiment of this application further provides a computer programproduct. When the computer program product runs on a computer, thecomputer is enabled to perform the foregoing related method steps toimplement the device-level full-screen display method in the foregoingembodiments.

In addition, an embodiment of this application further provides anapparatus. The apparatus may be specifically a chip. The chip mayinclude a processor and a memory. The memory stores instructions. Whenthe instructions are executed by the processor, the chip is enabled toperform the foregoing related steps to implement the device-levelfull-screen display method in the foregoing embodiments.

In addition, an embodiment of this application further provides anapparatus. The apparatus may be specifically a component or a module.The apparatus may include a processor and a memory that are connected.The memory is configured to store computer executable instructions, andwhen the apparatus runs, the processor may execute the computerexecutable instructions stored in the memory, so that the apparatusperforms the device-level full-screen display method in the foregoingmethod embodiments.

The mobile terminal, the computer storage medium, the computer programproduct, and the chip provided in the embodiments of this applicationeach are configured to perform the corresponding method provided above.Therefore, for beneficial effects that can be achieved by the mobileterminal, the computer storage medium, the computer program product, andthe chip, refer to the beneficial effects in the corresponding methodprovided above. Details are not described herein again.

Based on the foregoing descriptions of the implementations, a personskilled in the art may understand that for the purpose of convenient andbrief descriptions, division into the foregoing functional modules ismerely used as an example for description. In actual application, theforegoing functions can be allocated to different functional modules forimplementation based on a requirement, that is, an inner structure of anapparatus is divided into different functional modules to implement allor some of the functions described above.

In the several embodiments provided in this application, it should beunderstood that the disclosed apparatuses and methods may be implementedin other manners. For example, the described apparatus embodiments aremerely examples. For example, division into the modules or units ismerely logical function division, and may be other division in an actualimplementation. For example, a plurality of units or components may becombined or may be integrated into another apparatus, or some featuresmay be ignored or not performed. In addition, the displayed or discussedmutual couplings or direct couplings or communication connections may beimplemented through some interfaces. The indirect couplings orcommunication connections between the apparatuses or units may beimplemented in an electrical form, a mechanical form, or another form.

The units described as separate components may or may not be physicallyseparate, and components displayed as units may be one or more physicalunits, that is, may be located in one place, or may be distributed on aplurality of different places. Some or all of the units may be selectedbased on an actual requirement to achieve an objective of the solutionsof the embodiments.

In addition, functional units in the embodiments of this application maybe integrated into one processing unit, or each of the units may existalone physically, or two or more units may be integrated into one unit.The integrated unit may be implemented in a form of hardware, or may beimplemented in a form of a software functional unit.

When the integrated unit is implemented in the form of a softwarefunctional unit and sold or used as an independent product, theintegrated unit may be stored in a readable storage medium. Based onsuch an understanding, the technical solutions of the embodiments ofthis application essentially, or the part contributing to theconventional technology, or all or some of the technical solutions maybe implemented in a form of a software product. The software product isstored in a storage medium and includes several instructions forinstructing a device (which may be a single-chip microcomputer, a chip,or the like) or a processor (processor) to perform all or some of thesteps of the methods in the embodiments of this application. Theforegoing storage medium includes any medium that can store programcode, such as a USB flash drive, a removable hard disk, a read-onlymemory (read-only memory, ROM), a random access memory (random accessmemory, RAM), a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementations of thisapplication, but are not intended to limit the protection scope of thisapplication. Any variation or replacement readily figured out by aperson skilled in the art within the technical scope disclosed in thisapplication shall fall within the protection scope of this application.Therefore, the protection scope of this application shall be subject tothe protection scope of the claims.

What is claimed is: 1-26. (canceled)
 27. A full-screen display methodfor a mobile terminal, wherein the mobile terminal comprises a display,and the method comprises: displaying, by the mobile terminal, a firstinterface, wherein the first interface comprises a first window and asecond window, the first window and the second window are used todisplay a user interface of an application, and the first windowcomprises a target object; detecting, by the mobile terminal, a firsttouch operation, wherein the first touch operation indicates the mobileterminal to display the target object in full screen mode; switching, bythe mobile terminal, from a portrait orientation to a landscapeorientation in response to the first touch operation; and displaying, bythe mobile terminal, a second interface, wherein the second interfacecomprises a third window, the third window displays the target object infull screen mode, and the third window is larger than the first window.28. The method according to claim 27, wherein before the switching, bythe mobile terminal, from the portrait orientation to the landscapeorientation, the method further comprises: obtaining, by the mobileterminal, a display orientation, wherein the display orientationcomprises the landscape orientation or the portrait orientation; and theswitching, by the mobile terminal, from the portrait orientation to thelandscape orientation comprises: in response to the display orientationobtained by the mobile terminal being the portrait orientation, and adifference between a width and a height of the display being greaterthan a preset value, switching, by the mobile terminal, the displayorientation from the portrait orientation to the landscape orientation.29. The method according to claim 27, wherein before the switching, bythe mobile terminal, from the portrait orientation to the landscapeorientation, the method further comprises: obtaining, by the mobileterminal, a display orientation, wherein the display orientationcomprises the landscape orientation or the portrait orientation; and theswitching, by the mobile terminal, from the portrait orientation to thelandscape orientation comprises: in response to the display directionobtained by the mobile terminal being the portrait orientation, and thedifference between the width and the height of the display being lessthan or equal to the preset value, displaying, by the mobile terminal,the second interface.
 30. The method according to claim 29, whereinafter the switching, by the mobile terminal, from the portraitorientation to the landscape orientation, the method further comprises:storing, by the mobile terminal, orientation switching information,wherein the orientation switching information indicates that the displayorientation is switched from the portrait orientation to the landscapeorientation; and after the displaying, by the mobile terminal, thesecond interface, the method further comprises: detecting, by the mobileterminal, an instruction for exiting full-screen display; switching, bythe mobile terminal, the display orientation back to the portraitorientation based on the orientation switching information; anddisplaying, by the mobile terminal, a third interface, wherein the thirdinterface comprises the first window and the second window, and sizes ofthe first window and the second window in the third interface are thesame as sizes of the first window and the second window in the firstinterface.
 31. The method according to claim 30, wherein the mobileterminal comprises an activity manager and a window manager; and thedisplaying, by the mobile terminal, the second interface, wherein thesecond interface comprises the third window, the third window displaysthe target object in full screen mode, and the third window is largerthan the first window comprises: updating, by the activity manager,first status information of the first window, wherein the first statusinformation comprises a window size of the first window, and an updatedwindow size of the first window is greater than a size of the firstwindow in the first interface; updating, by the activity manager,updated first status information to a configuration file of anapplication corresponding to the first window; drawing, by the windowmanager, the third window based on the updated first status informationin the configuration file; and displaying, by the display, the thirdwindow, wherein the third window is used to display the target object infull screen mode.
 32. The method according to claim 31, wherein thefirst interface displays the first window and the second window insplit-screen mode; and before the drawing, by the window manager, thethird window, the method further comprises: switching, by the activitymanager, a split-screen mode to a full-screen mode; and the drawing, bythe window manager, the third window based on the updated first statusinformation in the configuration file comprises: drawing, by the windowmanager, the third window based on the updated first status informationin the configuration file and the full-screen mode.
 33. The methodaccording to claim 30, wherein the mobile terminal comprises an activitymanager and a window manager; and after the detecting, by the mobileterminal, the first touch operation, the method further comprises:storing, by the activity manager, second status information of the firstwindow and second status information of the second window, wherein thesecond status information comprises a window size and a window mode; andthe displaying, by the mobile terminal, the third interface, wherein thethird interface comprises the first window and the second window, andsizes of the first window and the second window in the third interfaceare the same as sizes of the first window and the second window in thefirst interface comprises: updating, by the activity manager, the storedsecond status information of the first window to a configuration file ofan application corresponding to the first window; drawing, by the windowmanager, the first window in the third interface based on the secondstatus information of the first window in the configuration file;displaying, by the display, the first window in the third interface,wherein a size of the first window in the third interface is the same asa size of the first window in the first interface; updating, by theactivity manager, the stored second status information of the secondwindow to a configuration file of an application corresponding to thesecond window; drawing, by the window manager, the second window in thethird interface based on the second status information of the secondwindow in the configuration file; and displaying, by the display, thesecond window in the third interface, wherein a size of the secondwindow in the third interface is the same as a size of the second windowin the first interface.
 34. The method according to claim 33, whereinthe target object comprises a video, a picture, a game interface, or areader interface.
 35. The method according to claim 34, wherein thetarget object consists of the video; and before the displaying, by themobile terminal, a second interface, the method further comprises:determining, by the mobile terminal, that one or more of the followingare met: an audio and video decoder is in a working state; the mobileterminal is currently configured to play audio from an applicationcorresponding to the first window in which the video is located; or thefirst window comprises a subwindow of a SurfaceView type.
 36. The methodaccording to claim 35, wherein the first window in the first interfacecomprises a first control, and the first touch operation is a touchoperation performed on the first control.
 37. The method according toclaim 36, wherein the first window in the first interface furthercomprises a second control; and the method further comprises: detecting,by the mobile terminal, a touch operation performed on the secondcontrol; and displaying, by the mobile terminal, the target object infull screen mode in the first window in response to the touch operationperformed on the second control.
 38. The method according to claim 37,wherein a size of the third window is the same as a size of the display.39. A mobile terminal, comprising: one or more processors; a memory; anda touchscreen, configured to detect a touch operation and display aninterface, wherein the memory stores code, and when the code is executedby the one or more processors, the mobile terminal is configured toperform the following steps: displaying a first interface, wherein thefirst interface comprises a first window and a second window, the firstwindow and the second window are used to display a user interface of anapplication, and the first window comprises a target object; detecting afirst touch operation, wherein the first touch operation is used toindicate to display the target object in full screen mode; switchingfrom a portrait orientation to a landscape orientation in response tothe first touch operation; and displaying a second interface, whereinthe second interface comprises a third window, the third window displaysthe target object in full screen mode, and the third window is largerthan the first window.
 40. The mobile terminal according to claim 39,wherein when the code is executed by the one or more processors, themobile terminal is further configured to perform the following steps:obtaining a display orientation before switching the portraitorientation to the landscape orientation, wherein the display directioncomprises the landscape orientation or the portrait orientation; and ifthe obtained display orientation is the portrait orientation, and adifference between a width and a height of the touchscreen is greaterthan a preset value, switch the display orientation from the portraitorientation to the landscape orientation.
 41. The mobile terminalaccording to claim 40, wherein when the code is executed by the one ormore processors, the mobile terminal is further configured to performthe following step: after obtaining the display orientation, if theobtained display orientation is the landscape orientation, displayingthe second interface; and if the obtained display orientation is theportrait orientation, and the difference between the width and theheight of the display is less than or equal to the preset value,displaying the second interface.
 42. The mobile terminal according toclaim 41, wherein when the code is executed by the one or moreprocessors, the mobile terminal is further configured to perform thefollowing steps: storing orientation switching information afterswitching the portrait orientation to the landscape orientation, whereinthe orientation switching information indicates that the displayorientation is switched from the portrait orientation to the landscapeorientation; after displaying the second interface, detecting aninstruction for exiting full-screen display; switching the displayorientation back to the portrait orientation based on the orientationswitching information; and displaying a third interface, wherein thethird interface comprises the first window and the second window, andsizes of the first window and the second window in the third interfaceare the same as sizes of the first window and the second window in thefirst interface.
 43. The mobile terminal according to claim 42, whereinwhen the code is executed by the one or more processors, the mobileterminal is further configured to implement an activity manager and awindow manager; the activity manager is configured to: update firststatus information of the first window, wherein the first statusinformation comprises a window size of the first window, and an updatedwindow size of the first window is greater than a size of the firstwindow in the first interface; update updated first status informationto a configuration file of an application corresponding to the firstwindow; the window manager is configured to: draw the third window basedon the updated first status information in the configuration file; andthe touchscreen is configured to display the third window, wherein thethird window is used to display the target object in full screen mode.44. The mobile terminal according to claim 43, wherein the firstinterface comprises the first window and the second window insplit-screen mode; the activity manager is configured to switch asplit-screen mode to a full-screen mode; and the window manager isconfigured to draw the third window based on the updated first statusinformation in the configuration file and the full-screen mode.
 45. Themobile terminal according to claim 42, wherein when the code is executedby the one or more processors, the mobile terminal is configured toimplement an activity manager and a window manager, and is furtherconfigured to perform the following step: after the first touchoperation is detected, storing, by the activity manager, second statusinformation of the first window and second status information of thesecond window, wherein the second status information comprises a windowsize and a window mode; and the activity manager is configured to updatethe stored second status information of the first window to aconfiguration file of an application corresponding to the first window;the window manager is configured to draw the first window in the thirdinterface based on the second status information of the first window inthe configuration file; the touchscreen is configured to display thefirst window in the third interface, wherein a size of the first windowin the third interface is the same as a size of the first window in thefirst interface; the activity manager is configured to update the storedsecond status information of the second window to a configuration fileof an application corresponding to the second window; the window manageris configured to draw the second window in the third interface based onthe second status information of the second window in the configurationfile; and the touchscreen is configured to display the second window inthe third interface, wherein a size of the second window in the thirdinterface is the same as a size of the second window in the firstinterface.
 46. The mobile terminal according to claim 45, wherein thetarget object comprises a video, a picture, a game interface, or areader interface.
 47. The mobile terminal according to claim 46, whereinthe target object consists of the video; and when the code is executedby the one or more processors, the mobile terminal is further configuredto perform the following step: before displaying the second interface,determining that one or more of the following are met: an audio andvideo decoder is in a working state; an application corresponding to thefirst window in which the video is located obtains an audio focus; orthe first window comprises a subwindow of a SurfaceView type.
 48. Themobile terminal according to claim 47, wherein the first window in thefirst interface comprises a first control, and the first touch operationis a touch operation performed on the first control.
 49. The mobileterminal according to claim 48, wherein the first window in the firstinterface further comprises a second control; and when the code isexecuted by the one or more processors, the mobile terminal is furtherconfigured to perform the following steps: detecting a touch operationperformed on the second control; and displaying the target object infull screen mode in the first window in response to the touch operationperformed on the second control.
 50. The mobile terminal according toclaim 49, wherein a size of the third window is the same as a size ofthe touchscreen.
 51. A non-transitory computer-readable storage medium,comprising computer instructions, wherein when the computer instructionsare run on an electronic device, the electronic device is configured toperform the following steps: displaying a first interface, wherein thefirst interface comprises a first window and a second window, the firstwindow and the second window are used to display a user interface of anapplication, and the first window comprises a target object; detecting afirst touch operation, wherein the first touch operation is used toindicate to display the target object in full screen mode; switchingfrom a portrait orientation to a landscape orientation in response tothe first touch operation; and displaying a second interface, whereinthe second interface comprises a third window, the third window displaysthe target object in full screen mode, and the third window is largerthan the first window.